Example #1
0
        public void GetStudentDeclarationJiaoWu()
        {
            var repo    = new StudentDeclarationJiaoWuRepository(_context);
            var results = repo.Find(t =>
                                    t.SchoolYearTerm.Year == "2011-2012" &&
                                    t.SchoolYearTerm.Term == "2"
                                    );

            Assert.IsTrue(results.Count() > 0);
        }
Example #2
0
        public void GetStudentDeclarationJiaoWuByRepo()
        {
            //IUnitOfWork uow = new TbMisUnitOfWork();
            IRepositoryContext uow = new EntityFrameworkRepositoryContext();
            var repo   = new StudentDeclarationJiaoWuRepository(uow);
            var result = repo.GetAll();

            //Find(t => t.SchoolYearTerm.Year == "2011-2012" && t.SchoolYearTerm.Term == "2");
            //.Where(t => t.CanSubscribe);
            Assert.IsTrue(result.Count() > 0);
        }
 public void GetStudentDeclarationJiaoWuByRepo()
 {
     //IUnitOfWork uow = new TbMisUnitOfWork();
     IRepositoryContext uow = new EntityFrameworkRepositoryContext();
     var repo = new StudentDeclarationJiaoWuRepository(uow);
     var result = repo.GetAll();
     //Find(t => t.SchoolYearTerm.Year == "2011-2012" && t.SchoolYearTerm.Term == "2");
     //.Where(t => t.CanSubscribe);
     Assert.IsTrue(result.Count() > 0);
 }
 public void GetStudentDeclarationJiaoWu()
 {
     var repo = new StudentDeclarationJiaoWuRepository(_context);
     var results = repo.Find(t =>
         t.SchoolYearTerm.Year == "2011-2012" &&
         t.SchoolYearTerm.Term == "2"
         );
     Assert.IsTrue(results.Count() > 0);
 }