Exemplo n.º 1
0
 public void NUnit_Domain_UpdateCatCostCentre()
 {
     Cat_CostCentreServices service = new Cat_CostCentreServices();
     var costCentre = new Cat_CostCentre
     {
         Id = 2,
         CostCentreName = "ABCDomain1234",
         CostCentreCode = "abc1234",
         GroupCost = "NUnit Test1234"
     };
    // NUnit.Framework.Assert.IsTrue(result);
     if (service.Edit<Cat_CostCentre>(costCentre) ==  ActionStatus.EditSucceed.ToString())
     {
         Console.WriteLine("==>>> Result After Update:  " + costCentre.Id + " | " + costCentre.CostCentreName + " | " + costCentre.CostCentreCode + " | " + costCentre.GroupCost);
     }
 }
Exemplo n.º 2
0
        public void NUnit_Domain_UpdateCatCostCentre()
        {
            Cat_CostCentreServices service = new Cat_CostCentreServices();
            var costCentre = new Cat_CostCentre
            {
                Id             = 2,
                CostCentreName = "ABCDomain1234",
                CostCentreCode = "abc1234",
                GroupCost      = "NUnit Test1234"
            };

            // NUnit.Framework.Assert.IsTrue(result);
            if (service.Edit <Cat_CostCentre>(costCentre) == ActionStatus.EditSucceed.ToString())
            {
                Console.WriteLine("==>>> Result After Update:  " + costCentre.Id + " | " + costCentre.CostCentreName + " | " + costCentre.CostCentreCode + " | " + costCentre.GroupCost);
            }
        }