public Order ApplyDeliveryMethod()
        {
            IOrderTypeManager manager = this.Create();

            _order.DeliveryType = manager.GetDeliveryType();
            return(_order);
        }
Example #2
0
        public IOrderTypeManager GetOrderTypeManager(int orderTypeId)
        {
            IOrderTypeManager orderType = null;

            if (orderTypeId == 1)
            {
                orderType = new StandardOrderManager();
            }
            else if (orderTypeId == 2)
            {
                orderType = new ConventionOrderManager();
            }
            else if (orderTypeId == 3)
            {
                orderType = new BulkOrderManager();
            }
            return(orderType);
        }