public async Task Update_Book_ReadStatus() { var book = await BookHelpers.CreateValidBookWithAllProperties(); var repository = new BookRepository(_fixture.Context); (await repository.ExistsAsync(book.Id)).Should().BeTrue(); var sut = await repository.GetAsync(book.Id); var bookId = sut.Id; sut.Should().NotBeNull(); sut.IsRead.Should().BeTrue(); await BookHelpers.UpdateReadStatus(sut.Id, false); await _fixture.Context.Entry(sut).ReloadAsync(); sut.IsRead.Should().BeFalse(); sut.Id.Should().Be(bookId); }