Ejemplo n.º 1
0
        public void NUnit_TAMScanLog_Domain_GetById()
        {
            string status = string.Empty;
            Att_TAMScanLogServices service = new Att_TAMScanLogServices();
            var model = new Att_TAMScanLog { Id = 1 };
            var result = service.GetById<Att_TAMScanLogEntity>(model.Id, ref status);
            NUnit.Framework.Assert.IsNotNull(result);
            Console.Write("SearchResult: " + result.Id
                + " | " + result.CardCode

                );
        }
Ejemplo n.º 2
0
 public void NUnit_TAMScanLog_Domain_Edit()
 {
     Att_TAMScanLogServices service = new Att_TAMScanLogServices();
     var model = new Att_TAMScanLog
     {
         Id = 1
     };
     string result = service.Edit(model);
     if (result != string.Empty)
     {
         Console.WriteLine("Process Success >>> Update >>> " + model.Id
                 + " | " + model.CardCode
                 );
     }
 }
Ejemplo n.º 3
0
        public void NUnit_TAMScanLog_Domain_Remove()
        {
            Att_TAMScanLogServices service = new Att_TAMScanLogServices();
            int rs    = 0;
            var model = new Att_TAMScanLog {
                Id = 1
            };
            string result = service.Remove <Att_TAMScanLogEntity>(model.Id);

            if (result != string.Empty)
            {
                rs += 1;
                Console.WriteLine("Process Success >>> Remove >>> " + model.Id);
            }
        }
Ejemplo n.º 4
0
        public void NUnit_TAMScanLog_Domain_GetById()
        {
            string status = string.Empty;
            Att_TAMScanLogServices service = new Att_TAMScanLogServices();
            var model = new Att_TAMScanLog {
                Id = 1
            };
            var result = service.GetById <Att_TAMScanLogEntity>(model.Id, ref status);

            NUnit.Framework.Assert.IsNotNull(result);
            Console.Write("SearchResult: " + result.Id
                          + " | " + result.CardCode

                          );
        }
Ejemplo n.º 5
0
        public void NUnit_TAMScanLog_Domain_Edit()
        {
            Att_TAMScanLogServices service = new Att_TAMScanLogServices();
            var model = new Att_TAMScanLog
            {
                Id = 1
            };
            string result = service.Edit(model);

            if (result != string.Empty)
            {
                Console.WriteLine("Process Success >>> Update >>> " + model.Id
                                  + " | " + model.CardCode
                                  );
            }
        }
Ejemplo n.º 6
0
 public void NUnit_TAMScanLog_Domain_Add()
 {
     Att_TAMScanLogServices service = new Att_TAMScanLogServices();
     string result = string.Empty;
     int countSC = 0;
     for (int i = 1; i <= 10; i++)
     {
         var model = new Att_TAMScanLog
         {
             Comment = "Comment : " + 1
         };
         result = service.Add(model);
         if (result != string.Empty)
         {
             countSC += 1;
             Console.WriteLine("Process Success >>> Create >>> " + model.Id
                 );
         }
     }
     Console.WriteLine("Total success record: " + countSC);
 }
Ejemplo n.º 7
0
        public void NUnit_TAMScanLog_Domain_Add()
        {
            Att_TAMScanLogServices service = new Att_TAMScanLogServices();
            string result  = string.Empty;
            int    countSC = 0;

            for (int i = 1; i <= 10; i++)
            {
                var model = new Att_TAMScanLog
                {
                    Comment = "Comment : " + 1
                };
                result = service.Add(model);
                if (result != string.Empty)
                {
                    countSC += 1;
                    Console.WriteLine("Process Success >>> Create >>> " + model.Id
                                      );
                }
            }
            Console.WriteLine("Total success record: " + countSC);
        }
Ejemplo n.º 8
0
 public void NUnit_TAMScanLog_Domain_Remove()
 {
     Att_TAMScanLogServices service = new Att_TAMScanLogServices();
     int rs = 0;
     var model = new Att_TAMScanLog { Id = 1 };
     string result = service.Remove<Att_TAMScanLogEntity>(model.Id);
     if (result != string.Empty)
     {
         rs += 1;
         Console.WriteLine("Process Success >>> Remove >>> " + model.Id);
     }
 }