Exemplo n.º 1
0
        public void NUnit_Overtime_Domain_Add()
        {
            Att_OvertimeServices service = new Att_OvertimeServices();
            var result  = "";
            int countSC = 0;

            for (int i = 1; i <= 10; i++)
            {
                var model = new Att_Overtime
                {
                    ProfileID     = 1,
                    MethodPayment = "MethodPayment " + i,
                };
                result = service.Add <Att_Overtime>(model);
                NUnit.Framework.Assert.IsNull(result);
                if (result != "")
                {
                    countSC += 1;
                    Console.WriteLine("Process Success >>> Create >>> " + model.Id
                                      + " | " + model.MethodPayment
                                      );
                }
            }
            Console.WriteLine("Total success record: " + countSC);
        }
Exemplo n.º 2
0
 public void NUnit_Overtime_Domain_GetById()
 {
     Att_OvertimeServices service = new Att_OvertimeServices();
     var status = string.Empty;
     var model = new Att_Overtime { Id = 5 };
     var result = service.GetById<Att_OvertimeEntity>(model.Id, ref status);
     NUnit.Framework.Assert.IsNotNull(result);
     Console.Write("SearchResult: " + result.Id
         + " | " + result.ProfileID
         + " | " + result.MethodPayment
         );
 }
Exemplo n.º 3
0
        public void NUnit_Overtime_Domain_GetById()
        {
            Att_OvertimeServices service = new Att_OvertimeServices();
            var status = string.Empty;
            var model  = new Att_Overtime {
                Id = 5
            };
            var result = service.GetById <Att_OvertimeEntity>(model.Id, ref status);

            NUnit.Framework.Assert.IsNotNull(result);
            Console.Write("SearchResult: " + result.Id
                          + " | " + result.ProfileID
                          + " | " + result.MethodPayment
                          );
        }
Exemplo n.º 4
0
        public void NUnit_Overtime_Domain_Remove()
        {
            Att_OvertimeServices service = new Att_OvertimeServices();
            int rs    = 0;
            var model = new Att_Overtime {
                Id = 5
            };
            var result = service.Remove <Att_Overtime>(model.Id);

            NUnit.Framework.Assert.IsNull(result);
            if (result != "")
            {
                rs += 1;
                Console.WriteLine("Process Success >>> Remove >>> " + model.Id);
            }
        }
Exemplo n.º 5
0
 public void NUnit_Overtime_Domain_Edit()
 {
     Att_OvertimeServices service = new Att_OvertimeServices();
     var model = new Att_Overtime
     {
         Id = 5,
         ProfileID = 1,
         MethodPayment = "Update Name ",
     };
     var result = service.Edit<Att_Overtime>(model);
     NUnit.Framework.Assert.IsNull(result);
     if (result != "")
     {
         Console.WriteLine("Process Success >>> Update >>> " + model.Id
                 + " | " + model.ProfileID
                 + " | " + model.MethodPayment
                 );
     }
 }
Exemplo n.º 6
0
        public void NUnit_Overtime_Domain_Edit()
        {
            Att_OvertimeServices service = new Att_OvertimeServices();
            var model = new Att_Overtime
            {
                Id            = 5,
                ProfileID     = 1,
                MethodPayment = "Update Name ",
            };
            var result = service.Edit <Att_Overtime>(model);

            NUnit.Framework.Assert.IsNull(result);
            if (result != "")
            {
                Console.WriteLine("Process Success >>> Update >>> " + model.Id
                                  + " | " + model.ProfileID
                                  + " | " + model.MethodPayment
                                  );
            }
        }
Exemplo n.º 7
0
 public void NUnit_Overtime_Domain_Add()
 {
     Att_OvertimeServices service = new Att_OvertimeServices();
     var result = "";
     int countSC = 0;
     for (int i = 1; i <= 10; i++)
     {
         var model = new Att_Overtime
         {
             ProfileID = 1,
             MethodPayment = "MethodPayment " + i,
         };
         result = service.Add<Att_Overtime>(model);
         NUnit.Framework.Assert.IsNull(result);
         if (result != "")
         {
             countSC += 1;
             Console.WriteLine("Process Success >>> Create >>> " + model.Id
                 + " | " + model.MethodPayment
                 );
         }
     }
     Console.WriteLine("Total success record: " + countSC);
 }
Exemplo n.º 8
0
 public void NUnit_Overtime_Domain_Remove()
 {
     Att_OvertimeServices service = new Att_OvertimeServices();
     int rs = 0;
     var model = new Att_Overtime { Id = 5 };
     var result = service.Remove<Att_Overtime>(model.Id);
     NUnit.Framework.Assert.IsNull(result);
     if (result != "")
     {
         rs += 1;
         Console.WriteLine("Process Success >>> Remove >>> " + model.Id);
     }
 }