public void Test_QueryByUnifieldId()
   {
       IDbContext db = new R2DisasterContext();
       IRepository<Comprehensive> re = new EFRepository<Comprehensive>(db);
 
       IComprehensiveService service = new ComprehensiveService(re);
       string id = "370101060001";
       Comprehensive c=service.GetByUnifiedID(id);
   }
Example #2
0
        public void Test_QueryByUnifieldId()
        {
            IDbContext db = new R2DisasterContext();
            IRepository <Comprehensive> re = new EFRepository <Comprehensive>(db);

            IComprehensiveService service = new ComprehensiveService(re);
            string        id = "370101060001";
            Comprehensive c  = service.GetByUnifiedID(id);
        }
 public void TestGetByUIdCanNotBeNull()
 {
     IDbContext db = new R2DisasterContext();
     IRepository<Comprehensive> re = new EFRepository<Comprehensive>(db);
     IComprehensiveService s = new ComprehensiveService(re);
     InvestigationController c = new InvestigationController(s);
     string a=null;
     c.GetCompleteByUId(a);
 }
Example #4
0
        public void TestGetByUIdCanNotBeNull()
        {
            IDbContext db = new R2DisasterContext();
            IRepository <Comprehensive> re = new EFRepository <Comprehensive>(db);
            IComprehensiveService       s  = new ComprehensiveService(re);
            InvestigationController     c  = new InvestigationController(s);
            string a = null;

            c.GetCompleteByUId(a);
        }
        public void Test_Sample()
        {
            IDbContext db = new R2DisasterContext();
            IRepository<Category> re = new EFRepository<Category>(db);

            Category c = new Category()
            {
                Name = "Testname",
                Book = new Book()
                {
                    Name="TestBook",
                    Price=333
                }
            };
            re.Insert(c);
        }
Example #6
0
        public void Test_Sample()
        {
            IDbContext             db = new R2DisasterContext();
            IRepository <Category> re = new EFRepository <Category>(db);

            Category c = new Category()
            {
                Name = "Testname",
                Book = new Book()
                {
                    Name  = "TestBook",
                    Price = 333
                }
            };

            re.Insert(c);
        }