コード例 #1
0
        public void GetTeacherDeclaration()
        {
            var repo    = new TeacherDeclarationRepository(_context);
            var results = repo.Find(t =>
                                    t.DeclarationJiaoWu.SchoolYearTerm.Year == "2013-2014" &&
                                    t.DeclarationJiaoWu.SchoolYearTerm.Term == "2");

            Assert.IsTrue(results.Count() > 0);
        }
コード例 #2
0
 public void DeclarationCountOfTeacherDeclaration()
 {
     var repo = new TeacherDeclarationRepository(_context);
     var decls = repo.Find(t =>
         t.DeclarationJiaoWu.SchoolYearTerm.Year == "2013-2014" &&
         t.DeclarationJiaoWu.SchoolYearTerm.Term == "2");
     var result = decls.Sum(t => t.DeclarationJiaoWu.DeclarationCount);
     Assert.IsTrue(result > 0);
 }
コード例 #3
0
        public void DeclarationCountOfTeacherDeclaration()
        {
            var repo  = new TeacherDeclarationRepository(_context);
            var decls = repo.Find(t =>
                                  t.DeclarationJiaoWu.SchoolYearTerm.Year == "2013-2014" &&
                                  t.DeclarationJiaoWu.SchoolYearTerm.Term == "2");
            var result = decls.Sum(t => t.DeclarationJiaoWu.DeclarationCount);

            Assert.IsTrue(result > 0);
        }
コード例 #4
0
 public void GetTeacherDeclaration()
 {
     var repo = new TeacherDeclarationRepository(_context);
     var results = repo.Find(t =>
         t.DeclarationJiaoWu.SchoolYearTerm.Year == "2013-2014" &&
         t.DeclarationJiaoWu.SchoolYearTerm.Term == "2");
     Assert.IsTrue(results.Count() > 0);
 }