Exemplo n.º 1
0
 public void NUnit_Domain_AddCatPosition()
 {
     Cat_PositionServices service = new Cat_PositionServices();
     string result = string.Empty;
     int rs = 0;
    
     var position = new Cat_Position
     {
         PositionName = "NUnit Domain PositionName 2" ,
         PositionCode = "abc 2",
         Description = "NUnit-Description-2" 
     };
     result = service.Add(position);
     if (result != string.Empty)
     {
         rs += 1;
         Console.WriteLine("Process Success >>> Create >>> " + position.Id + " | " + position.PositionName + " | " + position.PositionCode + " | " + position.Description);
     }
     
     Console.WriteLine("Total success record: " + rs);
 }
Exemplo n.º 2
0
        public void NUnit_Domain_AddCatPosition()
        {
            Cat_PositionServices service = new Cat_PositionServices();
            string result = string.Empty;
            int    rs     = 0;

            var position = new Cat_Position
            {
                PositionName = "NUnit Domain PositionName 2",
                PositionCode = "abc 2",
                Description  = "NUnit-Description-2"
            };

            result = service.Add(position);
            if (result != string.Empty)
            {
                rs += 1;
                Console.WriteLine("Process Success >>> Create >>> " + position.Id + " | " + position.PositionName + " | " + position.PositionCode + " | " + position.Description);
            }

            Console.WriteLine("Total success record: " + rs);
        }