public void TestUpdateAuthor() { ComicRepository cr = new ComicRepository(context); Author authortoUpdate = new Author("author1"); Author updated = new Author("author2"); cr.AddAuthor(authortoUpdate); var result1 = cr.GetAllAuthors(); result1.Should().HaveCount(1); result1.First().Name.Should().Be("author1"); cr.UpdateAuthor(authortoUpdate, updated); result1 = cr.GetAllAuthors(); result1.Should().HaveCount(1); result1.First().Name.Should().Be("author2"); context.Dispose(); }