Example #1
0
        public void NUnit_WorkHistory_Domain_Edit()
        {
            Hre_WorkHistoryServices service = new Hre_WorkHistoryServices();
            var model = new Hre_WorkHistory
            {
                Id            = 66,
                ProfileID     = 1,
                PositionID    = 1,
                WorkLocation  = "Update Location ",
                JobTitleID    = 2,
                DateEffective = DateTime.Parse("2014/04/03")
            };
            string result = service.Edit(model);

            if (result != string.Empty)
            {
                Console.WriteLine("Process Success >>> Update >>> " + model.Id
                                  + " | " + model.ProfileID
                                  + " | " + model.PositionID
                                  + " | " + model.WorkLocation
                                  + " | " + model.JobTitleID
                                  + " | " + model.DateEffective
                                  );
            }
        }
 public void NUnit_WorkHistory_Domain_Add()
 {
     Hre_WorkHistoryServices service = new Hre_WorkHistoryServices();
     string result = string.Empty;
     int countSC = 0;
     for (int i = 1; i <= 10; i++)
     {
         var model = new Hre_WorkHistory
         {
             ProfileID = 1,
             PositionID = 1,
             WorkLocation = "Location "+ i,
             JobTitleID = 2,
             DateEffective = DateTime.Parse("2014/02/01")
         };
         result = service.Add(model);
         if (result != string.Empty)
         {
             countSC += 1;
             Console.WriteLine("Process Success >>> Create >>> " + model.Id
                 + " | " + model.ProfileID
                 + " | " + model.PositionID
                 + " | " + model.WorkLocation
                 + " | " + model.JobTitleID
                 + " | " + model.DateEffective
                 );
         }
     }
     Console.WriteLine("Total success record: " + countSC);
 }
Example #3
0
        public void NUnit_WorkHistory_Domain_Add()
        {
            Hre_WorkHistoryServices service = new Hre_WorkHistoryServices();
            string result  = string.Empty;
            int    countSC = 0;

            for (int i = 1; i <= 10; i++)
            {
                var model = new Hre_WorkHistory
                {
                    ProfileID     = 1,
                    PositionID    = 1,
                    WorkLocation  = "Location " + i,
                    JobTitleID    = 2,
                    DateEffective = DateTime.Parse("2014/02/01")
                };
                result = service.Add(model);
                if (result != string.Empty)
                {
                    countSC += 1;
                    Console.WriteLine("Process Success >>> Create >>> " + model.Id
                                      + " | " + model.ProfileID
                                      + " | " + model.PositionID
                                      + " | " + model.WorkLocation
                                      + " | " + model.JobTitleID
                                      + " | " + model.DateEffective
                                      );
                }
            }
            Console.WriteLine("Total success record: " + countSC);
        }
Example #4
0
        public void NUnit_WorkHistory_Domain_Delete()
        {
            Hre_WorkHistoryServices service = new Hre_WorkHistoryServices();
            int rs    = 0;
            var model = new Hre_WorkHistory {
                Id = 58
            };
            string result = service.Delete <Hre_WorkHistoryEntity>(model.Id);

            if (result != string.Empty)
            {
                rs += 1;
                Console.WriteLine("Process Success >>> Delete >>> " + model.Id);
            }
        }
 public void NUnit_WorkHistory_Domain_GetById()
 {
     string status = string.Empty;
     Hre_WorkHistoryServices service = new Hre_WorkHistoryServices();
     var model = new Hre_WorkHistory { Id = 60 };
     var result = service.GetById<Hre_WorkHistoryEntity>(model.Id, ref status) as Hre_WorkHistoryEntity;
     NUnit.Framework.Assert.IsNotNull(result);
     Console.Write("SearchResult: " + result.Id 
         + " | " + result.ProfileID 
         + " | " + result.PositionID
         + " | " + result.WorkLocation
         + " | " + result.JobTitleID
         + " | " + result.DateEffective
         );
 }
Example #6
0
        public void NUnit_WorkHistory_Domain_GetById()
        {
            string status = string.Empty;
            Hre_WorkHistoryServices service = new Hre_WorkHistoryServices();
            var model = new Hre_WorkHistory {
                Id = 60
            };
            var result = service.GetById <Hre_WorkHistoryEntity>(model.Id, ref status) as Hre_WorkHistoryEntity;

            NUnit.Framework.Assert.IsNotNull(result);
            Console.Write("SearchResult: " + result.Id
                          + " | " + result.ProfileID
                          + " | " + result.PositionID
                          + " | " + result.WorkLocation
                          + " | " + result.JobTitleID
                          + " | " + result.DateEffective
                          );
        }
        public void NUnit_WorkHistory_Domain_Edit()
        {
            Hre_WorkHistoryServices service = new Hre_WorkHistoryServices();
            var model = new Hre_WorkHistory
            {
                Id = 66,
                ProfileID = 1,
                PositionID = 1,
                WorkLocation = "Update Location ",
                JobTitleID = 2,
                DateEffective = DateTime.Parse("2014/04/03")

            };
            string result = service.Edit(model);
            if (result != string.Empty)
            {
                Console.WriteLine("Process Success >>> Update >>> " + model.Id
                        + " | " + model.ProfileID
                        + " | " + model.PositionID
                        + " | " + model.WorkLocation
                        + " | " + model.JobTitleID
                        + " | " + model.DateEffective
                        );
            }
        }
 public void NUnit_WorkHistory_Domain_Delete()
 {
     Hre_WorkHistoryServices service = new Hre_WorkHistoryServices();
     int rs = 0;
     var model = new Hre_WorkHistory { Id = 58 };
     string result = service.Delete<Hre_WorkHistoryEntity>(model.Id);
     if (result != string.Empty)
     {
         rs += 1;
         Console.WriteLine("Process Success >>> Delete >>> " + model.Id);
     }
 }