public void NUnit_DynamicColumn_Domain_GetById()
 {
     Sys_DynamicColumnServices service = new Sys_DynamicColumnServices();
     var model = new Sys_DynamicColumn { Id = 75 };
     var result = service.GetById<Sys_DynamicColumn>(model.Id,ref status) as Sys_DynamicColumn;
     NUnit.Framework.Assert.IsNotNull(result);
     Console.Write("SearchResult: " + result.Id 
         + " | " + result.Code
         + " | " + result.ColumnName 
         );
 }
Ejemplo n.º 2
0
        public void NUnit_DynamicColumn_Domain_GetById()
        {
            Sys_DynamicColumnServices service = new Sys_DynamicColumnServices();
            var model = new Sys_DynamicColumn {
                Id = 75
            };
            var result = service.GetById <Sys_DynamicColumn>(model.Id, ref status) as Sys_DynamicColumn;

            NUnit.Framework.Assert.IsNotNull(result);
            Console.Write("SearchResult: " + result.Id
                          + " | " + result.Code
                          + " | " + result.ColumnName
                          );
        }
Ejemplo n.º 3
0
        public void NUnit_DynamicColumn_Domain_Delete()
        {
            Sys_DynamicColumnServices service = new Sys_DynamicColumnServices();
            int rs    = 0;
            var model = new Sys_DynamicColumn {
                Id = 79
            };
            var result = service.Delete <Sys_DynamicColumn>(model.Id);

            //  NUnit.Framework.Assert.IsTrue(result);
            if (result == ActionStatus.EditSucceed.ToString())
            {
                rs += 1;
                Console.WriteLine("Process Success >>> Delete >>> " + model.Id);
            }
        }
 public void NUnit_DynamicColumn_Domain_Edit()
 {
     Sys_DynamicColumnServices service = new Sys_DynamicColumnServices();
     var model = new Sys_DynamicColumn
     {
         Id = 67,
         Code = "1",
         ColumnName = "test ",
     };
     var result = service.Edit<Sys_DynamicColumn>(model);
  //   NUnit.Framework.Assert.IsTrue(result);
     if (result == ActionStatus.EditSucceed.ToString())
     {
         Console.WriteLine("Process Success >>> Update >>> " + model.Id
                 + " | " + model.Code
                 + " | " + model.ColumnName
                 );
     }
 }
Ejemplo n.º 5
0
        public void NUnit_DynamicColumn_Domain_Edit()
        {
            Sys_DynamicColumnServices service = new Sys_DynamicColumnServices();
            var model = new Sys_DynamicColumn
            {
                Id         = 67,
                Code       = "1",
                ColumnName = "test ",
            };
            var result = service.Edit <Sys_DynamicColumn>(model);

            //   NUnit.Framework.Assert.IsTrue(result);
            if (result == ActionStatus.EditSucceed.ToString())
            {
                Console.WriteLine("Process Success >>> Update >>> " + model.Id
                                  + " | " + model.Code
                                  + " | " + model.ColumnName
                                  );
            }
        }
 public void NUnit_DynamicColumn_Domain_Delete()
 {
     Sys_DynamicColumnServices service = new Sys_DynamicColumnServices();
     int rs = 0;
     var model = new Sys_DynamicColumn { Id = 79 };
     var result = service.Delete<Sys_DynamicColumn>(model.Id);
   //  NUnit.Framework.Assert.IsTrue(result);
     if (result == ActionStatus.EditSucceed.ToString())
     {
         rs += 1;
         Console.WriteLine("Process Success >>> Delete >>> " + model.Id);
     }
 }