Exemplo n.º 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);
 }
Exemplo n.º 2
0
        public void TestMethod5()
        {
            SourceWebDAL dal = new SourceWebDAL();
            SourceWeb    web = dal.GetEntity(1);

            Console.WriteLine(web.Web);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
        }
Exemplo n.º 5
0
 public void TestMethod6()
 {
     SourceWebDAL dal = new SourceWebDAL();
     List<SourceWeb> webs = dal.GetList("").ToList();
     foreach (var item in webs)
     {
         Console.WriteLine(item.Web);
     }
 }
Exemplo n.º 6
0
        public void TestMethod6()
        {
            SourceWebDAL     dal  = new SourceWebDAL();
            List <SourceWeb> webs = dal.GetList("").ToList();

            foreach (var item in webs)
            {
                Console.WriteLine(item.Web);
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 8
0
 public void TestMethod5()
 {
     SourceWebDAL dal = new SourceWebDAL();
     SourceWeb web = dal.GetEntity(1);
     Console.WriteLine(web.Web);
 }