コード例 #1
0
        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);
            }
        }
コード例 #2
0
ファイル: ClassInfoRepoTests.cs プロジェクト: sergeskop/I2LI
        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);
        }