Esempio n. 1
0
        public PlaceOrderInteractor(OrderRequestModel orderRequestModel, IOrderGateway orderGateway)
        {
            /*
             * TODO:
             * - I'd need to take a reference to an outside boundary (i.e. a Repository)
             * which then saves it back to the DB
             * - What about the entities?? What kind of role do they play?
             */

            this.orderGateway = orderGateway;
            this.orderRequestModel = orderRequestModel;
        }
Esempio n. 2
0
        public void PlaceOrder(OrderRequestModel orderRequestModel, IPlaceOrderOutputPort placeOrderOutbound)
        {
            //orderOutbound.DisplaySuccess();

            throw new NotImplementedException();
        }