Example #1
0
        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);
            }
        }
Example #2
0
        public void ParticipantTests_GetClassById_Mock()
        {
            ClassInfoRepo repo = new ClassInfoRepo(GetMockContext().Object)
            {
                IncludeNavigationProperties = false
            };

            var res = repo.GetClassById(2);

            Assert.IsTrue(res != null);
        }