예제 #1
0
        static void Main(string[] args)
        {
            Bootstrapper.Initialize();
            IOrderApplicationService orderApplicationService = Bootstrapper.Start <IOrderApplicationService>();

            Product product = new Product("product_01");
            int     count   = 5;

            orderApplicationService.AddOrderLine(product, count);
        }
예제 #2
0
        public OrderFacadeService(IOrderApplicationService orderAppService,
                                  ICompanyDomainService companyDomainService,
                                  IOrderToDtoMapper orderDtoMapper,
                                  IOrderItemToDtoMapper itemToDtoMapper,
                                  IOrderRepository orderRepository,
            IGoodUnitConvertorDomainService goodUnitConvertorDomainService,
            IMainUnitVlaueTomainUnitVlaueDtoMapper mainUnitVlaueTomainUnitVlaueDtoMapper
            , IUnitOfWorkScope unitOfWorkScope
)
        {
            _orderRepository = orderRepository;
            _goodUnitConvertorDomainService = goodUnitConvertorDomainService;
            _mainUnitVlaueTomainUnitVlaueDtoMapper = mainUnitVlaueTomainUnitVlaueDtoMapper;
            _unitOfWorkScope = unitOfWorkScope;
            _orderAppService = orderAppService;
            _companyDomainService = companyDomainService;
            _orderDtoMapper = orderDtoMapper;
            _itemToDtoMapper = itemToDtoMapper;
        }
 public OrderController(IOrderApplicationService service)
 {
     _service = service;
 }
예제 #4
0
 public OrdersController(IOrderApplicationService orderApplicationService) => _orderApplicationService = orderApplicationService;
예제 #5
0
 public ValuesController(IOrderApplicationService applicationService)
 {
     _applicationService = applicationService;
 }
 public OrderController(IOrderApplicationService service)
 {
     this._service = service;
 }
예제 #7
0
 public OrderController(ISession session, IOrderApplicationService applicationService)
 {
     this.session        = session;
     _applicationService = applicationService;
 }
예제 #8
0
 public OrderController(ILogger <OrderController> logger, IOrderApplicationService appService)
 {
     _logger     = logger;
     _appService = appService;
 }
 /// <summary>
 /// Default Constructor
 /// </summary>
 public OrderController(IOrderApplicationService orderApplicationService, IOrderQueryService orderQueryService, IApiKeyInfoAccess apiKeyInfoAccess)
 {
     _orderApplicationService = orderApplicationService;
     _orderQueryService       = orderQueryService;
     _apiKeyInfoAccess        = apiKeyInfoAccess;
 }
예제 #10
0
 public OrderProductsController(IOrderApplicationService orderApplicationService)
 {
     _orderApplicationService = orderApplicationService;
 }
예제 #11
0
 public static IEnumerable <IOrderState> GetByProperty <TPropertyType>(this IOrderApplicationService applicationService,
                                                                       System.Linq.Expressions.Expression <Func <IOrderState, TPropertyType> > propertySelector,
                                                                       TPropertyType propertyValue, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue)
 {
     return(applicationService.GetByProperty(ReflectUtils.GetPropertyName <IOrderState, TPropertyType>(propertySelector), propertyValue, orders, firstResult, maxResults));
 }
 public OrderController(IOrderApplicationService orderService)
 {
     _orderService = orderService;
 }
 public void SetUp()
 {
     _orderseService = ContextRegistry.GetContext()["OrderApplicationService"] as IOrderApplicationService;
     InputDisruptorPublisher.InitializeDisruptor(new IEventHandler <InputPayload>[] { this });
     _manualResetEvent = new ManualResetEvent(false);
 }
예제 #14
0
 public OrdersController(CoffeShopDbContext context, IOrderApplicationService orderApplicationService)
 {
     _context = context;
     _orderApplicationService = orderApplicationService;
 }