public void testAdd() { //Arrange int count = repo.All().Count(); // Act this.repo.Add(entity); this.repo.SaveChanges(); // Assert Assert.NotNull(repo.GetByName(n)); this.repo.HardDelete(entity); this.repo.SaveChanges(); }