public void ClassInfoIntegationTests_GetAll() { using (PrivateClassesDBContext dbContext = new PrivateClassesDBContext()) { ClassInfoRepo repo = new ClassInfoRepo(dbContext); List <ClassInfo> res = repo.GetAll().ToList(); Assert.IsTrue(res != null && res.Count > 0); } }
public void ParticipantTests_GetAll_Mock() { ClassInfoRepo repo = new ClassInfoRepo(GetMockContext().Object) { IncludeNavigationProperties = false }; var res = repo.GetAll().ToList(); Assert.IsTrue(res != null && res.Count == 2); }