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