public void testUpdate() { // Arrange int count = repo.All().Count(); repo.Add(entity); this.repo.SaveChanges(); Assert.IsEmpty(repo.Get(x => x.FirstName == fn + "alala" && x.LastName == ln)); Assert.AreEqual(count + 1, repo.All().Count()); entity.FirstName += "alala"; // Act repo.Update(entity); repo.SaveChanges(); // Assert Assert.NotNull(repo.Get(x => x.FirstName == fn + "alala" && x.LastName == ln)); this.repo.HardDelete(entity); this.repo.SaveChanges(); }