mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
technical edits
This commit is contained in:
@@ -31,7 +31,7 @@ public class AccesserToDownloadMediaServiceTests
|
||||
_groupId = Guid.NewGuid();
|
||||
_mediaFileId = Guid.NewGuid();
|
||||
|
||||
// Áàçîâîå ñîîáùåíèå è ìåäèà
|
||||
// ������� ��������� � �����
|
||||
var message = new Message
|
||||
{
|
||||
Id = Guid.NewGuid(),
|
||||
@@ -170,7 +170,7 @@ public class AccesserToDownloadMediaServiceTests
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task HasAccessAsync_ReturnsFalse_ForOtherUserAvatar()
|
||||
public async Task HasAccessAsync_ReturnsTrue_ForOtherUserAvatar()
|
||||
{
|
||||
var avatarMedia = new MediaFile
|
||||
{
|
||||
@@ -188,7 +188,7 @@ public class AccesserToDownloadMediaServiceTests
|
||||
await _dbContext.SaveChangesAsync();
|
||||
|
||||
var result = await _accesser.HasAccessAsync(avatarMedia.Id, _userId);
|
||||
Assert.That(result, Is.False);
|
||||
Assert.That(result, Is.True);
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -275,7 +275,7 @@ public class AccesserToDownloadMediaServiceTests
|
||||
MineType = "image/png",
|
||||
MediaType = MediaType.Image,
|
||||
UploaderId = _userId,
|
||||
OwnerType = (MediaOwnerType)999, // íåèçâåñòíûé òèï
|
||||
OwnerType = (MediaOwnerType)999, // ����������� ���
|
||||
DateCreated = DateTime.UtcNow
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user