public void ClassInfoIntegationTests_GetClassById() { using (PrivateClassesDBContext dbContext = new PrivateClassesDBContext()) { ClassInfoRepo repo = new ClassInfoRepo(dbContext); var res = repo.GetClassById(3); Assert.IsTrue(res != null && res.ClassCategory != null); } }
public void ParticipantTests_GetClassById_Mock() { ClassInfoRepo repo = new ClassInfoRepo(GetMockContext().Object) { IncludeNavigationProperties = false }; var res = repo.GetClassById(2); Assert.IsTrue(res != null); }