Ejemplo n.º 1
0
        public void AddRuleTest(DateTime OrderDate, string CustomerName, string State, string ProductType, decimal Area, bool expectedResponse)
        {
            AddOrderResponse actual = new AddOrderResponse();
            IAddOrder        Add    = new AddOrderRule();

            actual = Add.AddRules(OrderDate, CustomerName, State, ProductType, Area, actual);

            Assert.AreEqual(expectedResponse, actual.success);
        }
Ejemplo n.º 2
0
        public AddOrderResponse AddOrder(DateTime OrderDate, string CustomerName, string State, string ProductType, decimal Area)
        {
            AddOrderResponse response = new AddOrderResponse();

            response.Orders = _orderRepository.LoadOrders(OrderDate);

            IAddOrder addRule = new AddOrderRule();

            response = addRule.AddRules(OrderDate, CustomerName, State, ProductType, Area, response);

            return(response);
        }