diff --git a/test/Aktabook.Application.UnitTests/MessageHandlers/ChangeBookInfoRequestStatusHandlerTest.cs b/test/Aktabook.Application.UnitTests/MessageHandlers/ChangeBookInfoRequestStatusHandlerTest.cs index be6f9d4..017434e 100644 --- a/test/Aktabook.Application.UnitTests/MessageHandlers/ChangeBookInfoRequestStatusHandlerTest.cs +++ b/test/Aktabook.Application.UnitTests/MessageHandlers/ChangeBookInfoRequestStatusHandlerTest.cs @@ -31,11 +31,11 @@ public async Task GivenHandle_WhenCommand_ThenChangeBookInfoRequestStatus() ChangeBookInfoRequestStatusHandler handler = new(_bookInfoRequestServiceMock); bool result = await handler.Handle(changeBookInfoRequestStatus, CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); await _bookInfoRequestServiceMock.Received(1).ChangeRequestStatus( new Guid("dddddddd-dddd-dddd-dddd-dddddddddddd"), "Dummy", - CancellationToken.None).ConfigureAwait(false); + CancellationToken.None).ConfigureAwait(true); result.Should().BeTrue(); } diff --git a/test/Aktabook.Application.UnitTests/MessageHandlers/PlaceBookInfoRequestHandlerTest.cs b/test/Aktabook.Application.UnitTests/MessageHandlers/PlaceBookInfoRequestHandlerTest.cs index 848c2eb..1fdcf2b 100644 --- a/test/Aktabook.Application.UnitTests/MessageHandlers/PlaceBookInfoRequestHandlerTest.cs +++ b/test/Aktabook.Application.UnitTests/MessageHandlers/PlaceBookInfoRequestHandlerTest.cs @@ -37,7 +37,7 @@ public async Task GivenHandle_WhenCommand_ThenBookInfoRequestId() PlaceBookInfoRequestHandler handler = new(_bookInfoRequestServiceMock, _endpointInstanceMock); Guid bookInfoRequestId = await handler.Handle(placeBookInfoRequest, CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); bookInfoRequestId.Should().Be(new Guid("dddddddd-dddd-dddd-dddd-dddddddddddd")); } diff --git a/test/Aktabook.Bus.IntegrationTest/EndpointTest.cs b/test/Aktabook.Bus.IntegrationTest/EndpointTest.cs index 9aa5bdf..c0f13c3 100644 --- a/test/Aktabook.Bus.IntegrationTest/EndpointTest.cs +++ b/test/Aktabook.Bus.IntegrationTest/EndpointTest.cs @@ -27,13 +27,13 @@ public EndpointTest(BusEndpointFixture busEndpointFixture) public async Task GivenSend_WhenMessage_ThenMessageInQueue() { IEndpointInstance endpointInstance = await _busEndpointFixture - .GetEndpointInstance().ConfigureAwait(false); + .GetEndpointInstance().ConfigureAwait(true); Guid bookInfoRequestId = Guid.NewGuid(); ProcessBookInfoRequest processBookInfoRequest = new(bookInfoRequestId, "Dummy ISBN"); await endpointInstance.Awaiting(x => x - .Send(processBookInfoRequest)).Should().NotThrowAsync().ConfigureAwait(false); + .Send(processBookInfoRequest)).Should().NotThrowAsync().ConfigureAwait(true); } } diff --git a/test/Aktabook.Bus.UnitTest/BookInfoRequestHandlerUnitTest.cs b/test/Aktabook.Bus.UnitTest/BookInfoRequestHandlerUnitTest.cs index 29ff140..95c184a 100644 --- a/test/Aktabook.Bus.UnitTest/BookInfoRequestHandlerUnitTest.cs +++ b/test/Aktabook.Bus.UnitTest/BookInfoRequestHandlerUnitTest.cs @@ -62,7 +62,7 @@ public async Task GivenHandle_WhenProcessBookInfoRequest_ThenPublishThreeMessage await handler .Handle(new ProcessBookInfoRequest(Guid.Empty, "Dummy ISBN"), context) - .ConfigureAwait(false); + .ConfigureAwait(true); context.PublishedMessages.Should().HaveCount(3); context.RepliedMessages.Should().BeEmpty(); @@ -98,10 +98,10 @@ public async Task GivenHandle_WhenGetBookByIsbnAsyncReturnsWork_ThenSaveToDbCont await handler .Handle(new ProcessBookInfoRequest(Guid.Empty, "Dummy ISBN"), context) - .ConfigureAwait(false); + .ConfigureAwait(true); - await _bookSetMock.Received(1).AddAsync(Arg.Any(), Arg.Any()).ConfigureAwait(false); - await _requesterServiceDbContextMock.Received(1).SaveChangesAsync(Arg.Any()).ConfigureAwait(false); + await _bookSetMock.Received(1).AddAsync(Arg.Any(), Arg.Any()).ConfigureAwait(true); + await _requesterServiceDbContextMock.Received(1).SaveChangesAsync(Arg.Any()).ConfigureAwait(true); } [Fact] @@ -136,7 +136,7 @@ public async Task GivenHandle_WhenGetBookByIsbnAsyncReturnsNull_ThenPublishThree await handler .Handle(new ProcessBookInfoRequest(Guid.Empty, "Dummy ISBN"), context) - .ConfigureAwait(false); + .ConfigureAwait(true); context.PublishedMessages.Should().HaveCount(3); context.RepliedMessages.Should().BeEmpty(); @@ -175,9 +175,9 @@ public async Task GivenHandle_WhenGetBookByIsbnAsyncReturnsNull_ThenDoNotUseDbCo await handler .Handle(new ProcessBookInfoRequest(Guid.Empty, "Dummy ISBN"), context) - .ConfigureAwait(false); + .ConfigureAwait(true); var _ = _bookSetMock.DidNotReceive().AddAsync(Arg.Any(), Arg.Any()); - await _requesterServiceDbContextMock.DidNotReceive().SaveChangesAsync(Arg.Any()).ConfigureAwait(false); + await _requesterServiceDbContextMock.DidNotReceive().SaveChangesAsync(Arg.Any()).ConfigureAwait(true); } } diff --git a/test/Aktabook.Connectors.OpenLibrary.IntegrationTest/OpenLibraryClientIntegrationTest.cs b/test/Aktabook.Connectors.OpenLibrary.IntegrationTest/OpenLibraryClientIntegrationTest.cs index 6e59834..40ed745 100644 --- a/test/Aktabook.Connectors.OpenLibrary.IntegrationTest/OpenLibraryClientIntegrationTest.cs +++ b/test/Aktabook.Connectors.OpenLibrary.IntegrationTest/OpenLibraryClientIntegrationTest.cs @@ -35,7 +35,7 @@ public async Task GivenGetBookByIsbnAsync_WhenIsbnForExistingBook_ThenWork(strin OpenLibraryClient openLibraryClient = new(HttpClient); Work? result = await openLibraryClient.GetBookByIsbnAsync(isbn, CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); result.Should().BeOfType(); } @@ -46,7 +46,7 @@ public async Task GivenGetBookByIsbnAsync_WhenInvalidIsbn_ThenValueIsNull() OpenLibraryClient openLibraryClient = new(HttpClient); Work? result = await openLibraryClient.GetBookByIsbnAsync("0", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); result.Should().BeNull(); } @@ -57,7 +57,7 @@ public async Task GivenGetAuthorAsync_WhenAuthorId_ThenAuthor() OpenLibraryClient openLibraryClient = new(HttpClient); Author? result = await openLibraryClient.GetAuthorAsync("OL23919A", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); result.Should().BeOfType(); } @@ -68,7 +68,7 @@ public async Task GivenGetAuthorAsync_WhenNonExistingAuthorId_ThenValueIsNull() OpenLibraryClient openLibraryClient = new(HttpClient); Author? result = await openLibraryClient.GetAuthorAsync("0", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); result.Should().BeNull(); } diff --git a/test/Aktabook.Connectors.OpenLibrary.UnitTest/OpenLibraryClientUnitTest.cs b/test/Aktabook.Connectors.OpenLibrary.UnitTest/OpenLibraryClientUnitTest.cs index e80d31b..d8d1606 100644 --- a/test/Aktabook.Connectors.OpenLibrary.UnitTest/OpenLibraryClientUnitTest.cs +++ b/test/Aktabook.Connectors.OpenLibrary.UnitTest/OpenLibraryClientUnitTest.cs @@ -26,7 +26,7 @@ public async Task GivenGetBookByIsbnAsync_WhenIsbnFound_ThenBook() OpenLibraryClient openLibraryClient = new(httpClient); Work? result = await openLibraryClient.GetBookByIsbnAsync("Dummy ISBN", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); result.Should().BeOfType(); } @@ -39,7 +39,7 @@ public async Task GivenGetBookByIsbnAsync_WhenIsbnNotFound_ThenNull() OpenLibraryClient openLibraryClient = new(httpClient); Work? result = await openLibraryClient.GetBookByIsbnAsync("Dummy ISBN", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); result.Should().BeNull(); } @@ -54,7 +54,7 @@ public async Task GivenGetBookByIsbnAsync_WhenError_ThenError() await openLibraryClient.Awaiting(x => x.GetBookByIsbnAsync( "Dummy ISBN", CancellationToken.None)) - .Should().ThrowExactlyAsync().ConfigureAwait(false); + .Should().ThrowExactlyAsync().ConfigureAwait(true); } [Fact] @@ -66,7 +66,7 @@ public async Task GivenGetBookByIsbnAsync_WhenInvalidResponse_ThenException() await openLibraryClient.Awaiting(x => x.GetBookByIsbnAsync("Dummy ISBN", CancellationToken.None)) - .Should().ThrowExactlyAsync().ConfigureAwait(false); + .Should().ThrowExactlyAsync().ConfigureAwait(true); } [Fact] @@ -77,7 +77,7 @@ public async Task GivenGetAuthorAsync_WhenAuthorId_ThenAuthor() OpenLibraryClient openLibraryClient = new(httpClient); Author? result = await openLibraryClient.GetAuthorAsync("Dummy author ID", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); result.Should().BeOfType(); } @@ -90,7 +90,7 @@ public async Task GivenGetAuthorAsync_WhenAuthorIdNotFound_ThenNull() OpenLibraryClient openLibraryClient = new(httpClient); Author? result = await openLibraryClient.GetAuthorAsync("Dummy author ID", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); result.Should().BeNull(); } @@ -104,7 +104,7 @@ public async Task GivenGetAuthorAsync_WhenHttpError_ThenThrowHttpRequestExceptio await openLibraryClient.Awaiting(x => x.GetAuthorAsync("Dummy author ID", CancellationToken.None)) - .Should().ThrowExactlyAsync().ConfigureAwait(false); + .Should().ThrowExactlyAsync().ConfigureAwait(true); } [Fact] @@ -115,6 +115,6 @@ public async Task GivenGetAuthorAsync_WhenInvalidResponse_ThenException() await openLibraryClient.Awaiting(x => x.GetAuthorAsync( "Dummy author ID", CancellationToken.None)).Should() - .ThrowExactlyAsync().ConfigureAwait(false); + .ThrowExactlyAsync().ConfigureAwait(true); } } diff --git a/test/Aktabook.PublicApi.V1.IntegrationTest/Controllers/BookInfoRequestControllerTest.cs b/test/Aktabook.PublicApi.V1.IntegrationTest/Controllers/BookInfoRequestControllerTest.cs index a565025..df0c3c9 100644 --- a/test/Aktabook.PublicApi.V1.IntegrationTest/Controllers/BookInfoRequestControllerTest.cs +++ b/test/Aktabook.PublicApi.V1.IntegrationTest/Controllers/BookInfoRequestControllerTest.cs @@ -37,7 +37,7 @@ public async Task GivenGet_WhenNoId_ThenResponseStatusCodeIsNotImplemented() HttpClient httpClient = _app.CreateClient(); HttpResponseMessage response = - await httpClient.GetAsync("/api/bookinforequest/").ConfigureAwait(false); + await httpClient.GetAsync("/api/bookinforequest/").ConfigureAwait(true); response.Should().HaveStatusCode(HttpStatusCode.NotImplemented) .And.HaveError() @@ -53,7 +53,7 @@ public async Task GivenGet_WhenIncorrectEndpointHandle_ThenRespondWithNotFound(s { HttpClient httpClient = _app.CreateClient(); - HttpResponseMessage response = await httpClient.GetAsync(uri).ConfigureAwait(false); + HttpResponseMessage response = await httpClient.GetAsync(uri).ConfigureAwait(true); response.Should().HaveStatusCode(HttpStatusCode.NotFound) .And.Subject.Content.Headers.ContentType.Should().BeNull(); @@ -65,7 +65,7 @@ public async Task GivenGet_WhenCorrectEndpointHandle_ThenResponseStatusCodeIsNot { HttpClient httpClient = _app.CreateClient(); - HttpResponseMessage response = await httpClient.GetAsync(uri).ConfigureAwait(false); + HttpResponseMessage response = await httpClient.GetAsync(uri).ConfigureAwait(true); response.Should().HaveStatusCode(HttpStatusCode.NotImplemented) .And.HaveError() @@ -83,8 +83,8 @@ public async Task GivenPostEndpoints_WhenValidRequest_ThenResponseStatusCodeIsAc HttpClient httpClient = _app.CreateClient(); HttpResponseMessage response = await httpClient.PostAsJsonAsync( - uri, new CreateBookInfoRequestRequest { Isbn = "9780199572199" }).ConfigureAwait(false); - _ = await response.Content.ReadFromJsonAsync().ConfigureAwait(false); + uri, new CreateBookInfoRequestRequest { Isbn = "9780199572199" }).ConfigureAwait(true); + _ = await response.Content.ReadFromJsonAsync().ConfigureAwait(true); response.Should().HaveStatusCode(HttpStatusCode.Accepted) .And.Subject.Content @@ -100,9 +100,9 @@ public async Task GivenPostEndpoints_WhenValidRequest_ThenResponseIsValid() HttpResponseMessage response = await httpClient.PostAsJsonAsync( "api/BookInfoRequest", - new CreateBookInfoRequestRequest { Isbn = "9780199572199" }).ConfigureAwait(false); + new CreateBookInfoRequestRequest { Isbn = "9780199572199" }).ConfigureAwait(true); CreateBookInfoRequestResponse? result = await response.Content - .ReadFromJsonAsync().ConfigureAwait(false); + .ReadFromJsonAsync().ConfigureAwait(true); result.Should().BeOfType() .Which.BookInfoRequestId.Should().NotBeEmpty(); @@ -115,17 +115,17 @@ public async Task GivenPostEndpoints_WhenValidRequest_ThenDatabaseIsUpdated() HttpResponseMessage response = await httpClient.PostAsJsonAsync( "api/BookInfoRequest", - new CreateBookInfoRequestRequest { Isbn = "9780199572199" }).ConfigureAwait(false); + new CreateBookInfoRequestRequest { Isbn = "9780199572199" }).ConfigureAwait(true); CreateBookInfoRequestResponse? result = await response.Content - .ReadFromJsonAsync().ConfigureAwait(false); + .ReadFromJsonAsync().ConfigureAwait(true); result.Should().BeOfType(); BookInfoRequest bookInfoRequest = await _app.RequesterServiceDbContext .BookInfoRequests .AsNoTracking() .Include(x => x.BookInfoRequestLogEntries) - .SingleAsync(x => x.BookInfoRequestId == result!.BookInfoRequestId).ConfigureAwait(false); + .SingleAsync(x => x.BookInfoRequestId == result!.BookInfoRequestId).ConfigureAwait(true); BookInfoRequest expected = new() { Isbn = "9780199572199" }; expected.BookInfoRequestLogEntries.Add(new BookInfoRequestLogEntry @@ -148,7 +148,7 @@ public async Task GivenPostEndpoints_WhenInvalidRequest_ThenResponseStatusCodeIs HttpResponseMessage response = await httpClient.PostAsJsonAsync( "api/BookInfoRequest", - new CreateBookInfoRequestRequest { Isbn = "Invalid ISBN" }).ConfigureAwait(false); + new CreateBookInfoRequestRequest { Isbn = "Invalid ISBN" }).ConfigureAwait(true); response.Should().HaveStatusCode(HttpStatusCode.BadRequest) .And.Subject.Content.Headers.ContentType.Should() @@ -164,10 +164,10 @@ public async Task GivenPostEndpoints_WhenInvalidRequest_ThenResponseIsError() HttpResponseMessage response = await httpClient.PostAsJsonAsync( "api/BookInfoRequest", - new CreateBookInfoRequestRequest { Isbn = "Invalid ISBN" }).ConfigureAwait(false); + new CreateBookInfoRequestRequest { Isbn = "Invalid ISBN" }).ConfigureAwait(true); ValidationProblemDetails? result = await response.Content - .ReadFromJsonAsync().ConfigureAwait(false); + .ReadFromJsonAsync().ConfigureAwait(true); result.Should().BeOfType() .Which.Errors.Should().HaveCount(1); diff --git a/test/Aktabook.Services.BookInfoRequestService.IntegrationTest/BookInfoRequesterTest.cs b/test/Aktabook.Services.BookInfoRequestService.IntegrationTest/BookInfoRequesterTest.cs index a5a9319..5dff7d8 100644 --- a/test/Aktabook.Services.BookInfoRequestService.IntegrationTest/BookInfoRequesterTest.cs +++ b/test/Aktabook.Services.BookInfoRequestService.IntegrationTest/BookInfoRequesterTest.cs @@ -18,6 +18,7 @@ namespace Aktabook.Services.BookInfoRequestService.IntegrationTest; +[CollectionDefinition("NonParallelDbTests", DisableParallelization = true)] [Trait("Category", "Ephemeral")] public class BookInfoRequesterTest : IClassFixture @@ -36,7 +37,7 @@ public async Task GivenPlaceRequest_WhenIsbn_ThenReturnBookInfoRequestId() BookInfoRequester bookInfoRequester = new(_dbDestructiveFixture.DbContext); Guid bookInfoRequestId = await bookInfoRequester.PlaceRequest("dummy isbn", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); bookInfoRequestId.Should().NotBeEmpty(); } @@ -47,7 +48,7 @@ public async Task GivenPlaceRequest_WhenIsbn_ThenCreateOneBookInfoRequest() BookInfoRequester bookInfoRequester = new(_dbDestructiveFixture.DbContext); Guid bookInfoRequestId = - await bookInfoRequester.PlaceRequest("Dummy ISBN", CancellationToken.None).ConfigureAwait(false); + await bookInfoRequester.PlaceRequest("Dummy ISBN", CancellationToken.None).ConfigureAwait(true); List bookInfoRequests = await _dbDestructiveFixture .DbContext @@ -55,7 +56,7 @@ public async Task GivenPlaceRequest_WhenIsbn_ThenCreateOneBookInfoRequest() .AsNoTracking() .Where(x => x.BookInfoRequestId == bookInfoRequestId) .ToListAsync() - .ConfigureAwait(false); + .ConfigureAwait(true); bookInfoRequests.Should().ContainSingle() .Which.Isbn.Should().Be("Dummy ISBN"); @@ -68,7 +69,7 @@ public async Task BookInfoRequester bookInfoRequester = new(_dbDestructiveFixture.DbContext); Guid bookInfoRequestId = - await bookInfoRequester.PlaceRequest("Dummy ISBN", CancellationToken.None).ConfigureAwait(false); + await bookInfoRequester.PlaceRequest("Dummy ISBN", CancellationToken.None).ConfigureAwait(true); List bookInfoRequests = await _dbDestructiveFixture .DbContext @@ -77,7 +78,7 @@ public async Task .Where(x => x.BookInfoRequestId == bookInfoRequestId) .Include(x => x.BookInfoRequestLogEntries) .ToListAsync() - .ConfigureAwait(false); + .ConfigureAwait(true); BookInfoRequest expected = new() { Isbn = "Dummy ISBN" }; expected.BookInfoRequestLogEntries.Add(new BookInfoRequestLogEntry @@ -102,7 +103,7 @@ public async Task GivenPlaceRequest_WhenIsbn_ThenRequestStatusIsRequested() BookInfoRequester bookInfoRequester = new(_dbDestructiveFixture.DbContext); Guid bookInfoRequestId = await bookInfoRequester.PlaceRequest("Dummy ISBN", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); List bookInfoRequestLogEntries = await _dbDestructiveFixture.DbContext @@ -110,7 +111,7 @@ await _dbDestructiveFixture.DbContext .AsNoTracking() .Where(x => x.BookInfoRequestId == bookInfoRequestId) .ToListAsync() - .ConfigureAwait(false); + .ConfigureAwait(true); bookInfoRequestLogEntries.Should().ContainSingle() .Which.Status.Should().Be(BookInfoRequestStatus.Requested); @@ -123,11 +124,11 @@ public async Task BookInfoRequester bookInfoRequester = new(_dbDestructiveFixture.DbContext); Guid bookInfoRequestId = - await bookInfoRequester.PlaceRequest("Dummy ISBN", CancellationToken.None).ConfigureAwait(false); + await bookInfoRequester.PlaceRequest("Dummy ISBN", CancellationToken.None).ConfigureAwait(true); await bookInfoRequester .ChangeRequestStatus(bookInfoRequestId, "Dummy BookInfoRequestStatus", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); List bookInfoRequestLogEntries = await _dbDestructiveFixture.DbContext @@ -135,7 +136,7 @@ await _dbDestructiveFixture.DbContext .AsNoTracking() .Where(x => x.BookInfoRequestId == bookInfoRequestId) .ToListAsync() - .ConfigureAwait(false); + .ConfigureAwait(true); bookInfoRequestLogEntries.Should().HaveCount(2) .And.ContainSingle(x => x.Status == BookInfoRequestStatus.Requested) @@ -150,11 +151,11 @@ public async Task BookInfoRequester bookInfoRequester = new(_dbDestructiveFixture.DbContext); Guid bookInfoRequestId = - await bookInfoRequester.PlaceRequest("Dummy ISBN", CancellationToken.None).ConfigureAwait(false); + await bookInfoRequester.PlaceRequest("Dummy ISBN", CancellationToken.None).ConfigureAwait(true); await bookInfoRequester .ChangeRequestStatus(bookInfoRequestId, BookInfoRequestStatus.Requested, CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); List bookInfoRequestLogEntries = await _dbDestructiveFixture.DbContext @@ -162,7 +163,7 @@ await _dbDestructiveFixture.DbContext .AsNoTracking() .Where(x => x.BookInfoRequestId == bookInfoRequestId) .ToListAsync() - .ConfigureAwait(false); + .ConfigureAwait(true); bookInfoRequestLogEntries.Should() .ContainSingle() @@ -175,23 +176,23 @@ public async Task GivenChangeRequestStatus_WhenMultipleCalls_ThenCorrectEntries( BookInfoRequester bookInfoRequester = new(_dbDestructiveFixture.DbContext); Guid bookInfoRequestId = - await bookInfoRequester.PlaceRequest("Dummy ISBN", CancellationToken.None).ConfigureAwait(false); + await bookInfoRequester.PlaceRequest("Dummy ISBN", CancellationToken.None).ConfigureAwait(true); await bookInfoRequester .ChangeRequestStatus(bookInfoRequestId, "Dummy status 001", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); await bookInfoRequester .ChangeRequestStatus(bookInfoRequestId, "Dummy status 002", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); await bookInfoRequester .ChangeRequestStatus(bookInfoRequestId, "Dummy status 003", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); await bookInfoRequester .ChangeRequestStatus(bookInfoRequestId, "Dummy status 004", CancellationToken.None) - .ConfigureAwait(false); + .ConfigureAwait(true); List bookInfoRequestLogEntries = await _dbDestructiveFixture.DbContext @@ -199,7 +200,7 @@ await _dbDestructiveFixture.DbContext .AsNoTracking() .Where(x => x.BookInfoRequestId == bookInfoRequestId) .ToListAsync() - .ConfigureAwait(false); + .ConfigureAwait(true); bookInfoRequestLogEntries.Should().HaveCount(5) .And.ContainSingle(x => x.Status == BookInfoRequestStatus.Requested)