Esempio n. 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);
        }
 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);
 }
Esempio n. 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);
        }
 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);
 }