Exemplo n.º 1
0
        private static ProcessOrderProduct AddProduct1(ProcessOrder order, int quantity = 1, decimal price = 55)
        {
            var product = new ProcessOrderProduct(OntraportProcessorTests.Product1, price)
            {
                Quantity = quantity
            };

            order.Products.Add(product);
            return(product);
        }
        private static ProcessOrderProduct AddProduct2(ProcessOrder order, int quantity = 1, decimal price = 100)
        {
            var product = new ProcessOrderProduct("prod2", price)
            {
                Quantity = quantity
            };

            order.Products.Add(product);
            return(product);
        }