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); }
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; }
public OrdersController(IOrderApplicationService orderApplicationService) => _orderApplicationService = orderApplicationService;
public ValuesController(IOrderApplicationService applicationService) { _applicationService = applicationService; }
public OrderController(IOrderApplicationService service) { this._service = service; }
public OrderController(ISession session, IOrderApplicationService applicationService) { this.session = session; _applicationService = applicationService; }
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; }
public OrderProductsController(IOrderApplicationService orderApplicationService) { _orderApplicationService = orderApplicationService; }
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); }
public OrdersController(CoffeShopDbContext context, IOrderApplicationService orderApplicationService) { _context = context; _orderApplicationService = orderApplicationService; }