Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
lasrinnil committed Dec 23, 2024
1 parent 1b3ef98 commit fdab758
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class ArchivedMessagesFixture : IDisposable, IAsyncLifetime

public ServiceProvider Services { get; private set; } = null!;

public ServiceCollection? ServiceCollection { get; private set; } = null!;
public ServiceCollection ServiceCollection { get; private set; } = null!;

public void CleanupDatabase()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public Task DisposeAsync()
}

[Fact]
public async Task Archived_document_can_be_retrieved_by_id()
public async Task Given_ArchivedDocument_When_Created_Then_CanBeRetrieved()
{
var correctArchivedMessage = await CreateArchivedMessageAsync();

Expand All @@ -76,7 +76,7 @@ public async Task Archived_document_can_be_retrieved_by_id()
}

[Fact]
public async Task Archived_document_can_be_retrieved_with_correct_content()
public async Task Given_ArchivedDocument_When_Created_Then_RetrievedWithCorrectContent()
{
// Arrange
var correctDocumentContent = "correct document content";
Expand All @@ -96,7 +96,7 @@ public async Task Archived_document_can_be_retrieved_with_correct_content()
[Theory]
[InlineData(ArchivedMessageTypeDto.IncomingMessage)]
[InlineData(ArchivedMessageTypeDto.OutgoingMessage)]
public async Task Archived_document_is_saved_at_correct_path(ArchivedMessageTypeDto archivedMessageType)
public async Task Given_ArchivedDocument_When_Created_Then_IsSavedAtCorrectPath(ArchivedMessageTypeDto archivedMessageType)
{
var messageId = MessageId.New();
var senderNumber = "1122334455667788";
Expand Down Expand Up @@ -125,7 +125,7 @@ public async Task Archived_document_is_saved_at_correct_path(ArchivedMessageType
}

[Fact]
public async Task Id_has_to_be_unique_in_database()
public async Task Given_ArchivedDocument_When_Created_Then_IdHasToBeUniqueInDatabase()
{
var serviceProviderWithoutFileStorage = BuildServiceProviderWithoutFileStorage();
var clientWithoutFileStorage = serviceProviderWithoutFileStorage.GetRequiredService<IArchivedMessagesClient>();
Expand All @@ -148,7 +148,7 @@ public async Task Id_has_to_be_unique_in_database()
}

[Fact]
public async Task Adding_archived_message_with_existing_message_id_creates_new_archived_message()
public async Task Given_ArchivedMessage_When_CreatedWithSameMessageId_Then_ArchivedMessageIsCreated()
{
var messageId = "MessageId";
await CreateArchivedMessageAsync(messageId: messageId);
Expand Down

0 comments on commit fdab758

Please sign in to comment.