示例#1
0
        public void ClassInfoIntegationTests_GetAllClassCategories()
        {
            using (PrivateClassesDBContext dbContext = new PrivateClassesDBContext())
            {
                ClassInfoRepo repo = new ClassInfoRepo(dbContext);

                var res = repo.GetAllClassCategories();
                Assert.IsTrue(res != null && res.Count > 0);
            }
        }
示例#2
0
        public void ClassInfoRepoTests_GetAllClassCategories_Mock()
        {
            ClassInfoRepo repo = new ClassInfoRepo(GetMockContext().Object)
            {
                IncludeNavigationProperties = false
            };

            var res = repo.GetAllClassCategories();

            Assert.IsTrue(res != null && res.Count == 2);
        }