public async Task Update_Book_CoverPath() { 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.BookCoverPath.Should().Be(@"C:\temp\pic.jpg"); await BookHelpers.UpdateCoverPath(sut.Id, @"\\filepath\newFile.jpg"); await _fixture.Context.Entry(sut).ReloadAsync(); sut.BookCoverPath.Should().Be(@"\\filepath\newFile.jpg"); sut.Id.Should().Be(bookId); }