Ejemplo n.º 1
0
 public void NUnit_Discipline_Domain_Edit()
 {
     Hre_DisciplineServices service = new Hre_DisciplineServices();
     var model = new Hre_Discipline
     {
         Id =10,
         ProfileID = 1,
         ViolationRule = "ViolationRule",
     };
     string result = service.Edit(model);
     if (result != string.Empty)
     {
         Console.WriteLine("Process Success >>> Update >>> " + model.Id
                 + " | " + model.ProfileID
                 + " | " + model.ViolationRule
                 );
     }
 }
Ejemplo n.º 2
0
        public void NUnit_Discipline_Domain_Edit()
        {
            Hre_DisciplineServices service = new Hre_DisciplineServices();
            var model = new Hre_Discipline
            {
                Id            = 10,
                ProfileID     = 1,
                ViolationRule = "ViolationRule",
            };
            string result = service.Edit(model);

            if (result != string.Empty)
            {
                Console.WriteLine("Process Success >>> Update >>> " + model.Id
                                  + " | " + model.ProfileID
                                  + " | " + model.ViolationRule
                                  );
            }
        }
Ejemplo n.º 3
0
        public void EditDiscipline()
        {
            var model = new Hre_Discipline
            {
                Id = 1,
                DateOfEffective = DateTime.Now,
                DateOfInsurance = DateTime.Now,
                DecisionNo = "Công ty VnResource Test update",
                DateOfViolation = DateTime.Now,
                DescriptionOfViolation = "Nghi nhieu Test update",
                ContentOfDiscipline = "Khong di lam Test update",
                DateOfExpiry = DateTime.Now,
                DisciplinedDecidingOrgID = 2,
                DisciplineTypeID = 2,
                Notes = "Ghi chú Test update",

            };
            var service = new Hre_DisciplineServices();
            var repo = service.Edit(model);
            Console.Write("Result: " + repo);

        }