Exemplo n.º 1
0
 public void NUnit_Domain_GetByIdCatCostCentres()
 {
     Cat_CostCentreServices service = new Cat_CostCentreServices();
     var costCentre = new Cat_CostCentre { Id = 2 };
     string status = string.Empty;
     var result = service.GetById<Cat_CostCentre>(costCentre.Id, ref status) ;
     NUnit.Framework.Assert.IsNotNull(result);
     Console.Write("SearchResult: " + result.Id + " | " + result.CostCentreName + " | " + result.CostCentreCode + " | " + result.GroupCost);
 }
Exemplo n.º 2
0
        public void NUnit_Domain_GetByIdCatCostCentres()
        {
            Cat_CostCentreServices service = new Cat_CostCentreServices();
            var costCentre = new Cat_CostCentre {
                Id = 2
            };
            string status = string.Empty;
            var    result = service.GetById <Cat_CostCentre>(costCentre.Id, ref status);

            NUnit.Framework.Assert.IsNotNull(result);
            Console.Write("SearchResult: " + result.Id + " | " + result.CostCentreName + " | " + result.CostCentreCode + " | " + result.GroupCost);
        }