Example #1
0
 public void TestMethod4()
 {
     SourceWebDAL dal = new SourceWebDAL();
     SourceWeb web = new SourceWeb {Id=1,CreateDate = DateTime.Now, CreateBy = 1, Web = "test222", URL = "www.testtest.com", IsDelete = true };
     int result = dal.Update(web);
     Console.WriteLine(result);
 }
Example #2
0
        public void TestMethod5()
        {
            SourceWebDAL dal = new SourceWebDAL();
            SourceWeb    web = dal.GetEntity(1);

            Console.WriteLine(web.Web);
        }
Example #3
0
 public void TestMethod3()
 {
     SourceWebDAL dal = new SourceWebDAL();
     //SourceWeb web = new SourceWeb { CreateDate = DateTime.Now, CreateBy = 1, Web = "test", URL = "www.test.com", IsDelete = false };
     int result = dal.Delete(3);
     Console.WriteLine(result);
 }
Example #4
0
        public void TestMethod3()
        {
            SourceWebDAL dal = new SourceWebDAL();
            //SourceWeb web = new SourceWeb { CreateDate = DateTime.Now, CreateBy = 1, Web = "test", URL = "www.test.com", IsDelete = false };
            int result = dal.Delete(3);

            Console.WriteLine(result);
        }
Example #5
0
 public void TestMethod6()
 {
     SourceWebDAL dal = new SourceWebDAL();
     List<SourceWeb> webs = dal.GetList("").ToList();
     foreach (var item in webs)
     {
         Console.WriteLine(item.Web);
     }
 }
Example #6
0
        public void TestMethod6()
        {
            SourceWebDAL     dal  = new SourceWebDAL();
            List <SourceWeb> webs = dal.GetList("").ToList();

            foreach (var item in webs)
            {
                Console.WriteLine(item.Web);
            }
        }
Example #7
0
        public void TestMethod4()
        {
            SourceWebDAL dal = new SourceWebDAL();
            SourceWeb    web = new SourceWeb {
                Id = 1, CreateDate = DateTime.Now, CreateBy = 1, Web = "test222", URL = "www.testtest.com", IsDelete = true
            };
            int result = dal.Update(web);

            Console.WriteLine(result);
        }
Example #8
0
 public void TestMethod5()
 {
     SourceWebDAL dal = new SourceWebDAL();
     SourceWeb web = dal.GetEntity(1);
     Console.WriteLine(web.Web);
 }