public PositionSummaryPresentationModel(IPositionSummaryView view, IAccountPositionService accountPositionService , IMarketFeedService marketFeedSvc , IMarketHistoryService marketHistorySvc , ITrendLinePresenter trendLinePresenter , IOrdersController ordersController , IEventAggregator eventAggregator) { View = view; AccountPositionSvc = accountPositionService; MarketHistorySvc = marketHistorySvc; EventAggregator = eventAggregator; MarketFeedSvc = marketFeedSvc; PositionSummaryItems = new ObservableCollection <PositionSummaryItem>(); PopulatePresentationModel(); BuyCommand = ordersController.BuyCommand; SellCommand = ordersController.SellCommand; View.Model = this; _trendLinePresenter = trendLinePresenter; View.ShowTrendLine(trendLinePresenter.View); //Initially show the FAKEINDEX trendLinePresenter.OnTickerSymbolSelected("FAKEINDEX"); eventAggregator.GetEvent <MarketPricesUpdatedEvent>().Subscribe(MarketPricesUpdated, ThreadOption.UIThread); InitializeEvents(); }
public PositionSummaryPresentationModel(IPositionSummaryView view, IAccountPositionService accountPositionService , IMarketFeedService marketFeedSvc , IMarketHistoryService marketHistorySvc , ITrendLinePresenter trendLinePresenter , IOrdersController ordersController , IEventAggregator eventAggregator) { View = view; AccountPositionSvc = accountPositionService; MarketHistorySvc = marketHistorySvc; EventAggregator = eventAggregator; MarketFeedSvc = marketFeedSvc; PositionSummaryItems = new ObservableCollection<PositionSummaryItem>(); PopulatePresentationModel(); BuyCommand = ordersController.BuyCommand; SellCommand = ordersController.SellCommand; View.Model = this; _trendLinePresenter = trendLinePresenter; View.ShowTrendLine(trendLinePresenter.View); //Initially show the FAKEINDEX trendLinePresenter.OnTickerSymbolSelected("FAKEINDEX"); eventAggregator.GetEvent<MarketPricesUpdatedEvent>().Subscribe(MarketPricesUpdated, ThreadOption.UIThread); InitializeEvents(); }
public OrderMapper(IOrdersController ordersController, ICatalogsController catalogsController, ICartController cartController, IProductController productController) { _eaOrderController = ordersController; _eaCatalogsController = catalogsController; _magentoCartController = cartController; _magentoProductController = productController; }
public OrderConfirmationPresenter([CreateNew] IOrdersController controller) { if (controller == null) { throw new ArgumentNullException("controller"); } _controller = controller; }
public PositionSummaryViewModel(IOrdersController ordersController, IEventAggregator eventAggregator, IObservablePosition observablePosition) { this.eventAggregator = eventAggregator; this.Position = observablePosition; BuyCommand = ordersController.BuyCommand; SellCommand = ordersController.SellCommand; this.CurrentPositionSummaryItem = new PositionSummaryItem("FAKEINDEX", 0, 0, 0); }
public SavedDraftsPresenter( [ServiceDependency] IOrdersService ordersService, [CreateNew] IOrdersController ordersController, [ServiceDependency] IBusinessPresentationConverter <Order, OrderInfo> ordersConverter, [ServiceDependency] IHttpContextLocatorService httpContextLocatorService) { _ordersService = ordersService; _ordersController = ordersController; _ordersConverter = ordersConverter; _httpContextLocatorService = httpContextLocatorService; }
public OrderDetailsPresenter( [CreateNew] IOrdersController controller, [ServiceDependency] IProductService productService, [ServiceDependency] IBusinessPresentationConverter <OrderDetail, OrderItemLine> orderDetailsConverter) { controller.VerifyOrderEntryFlowIsStarted(); _controller = controller; _productService = productService; _orderDetailsConverter = orderDetailsConverter; }
public OrderReviewPresenter([CreateNew] IOrdersController controller) { if (controller == null) { throw new ArgumentNullException("controller"); } controller.VerifyOrderEntryFlowIsStarted(); _controller = controller; }
public OrderInformationPresenter([CreateNew] IOrdersController controller, [ServiceDependency] IEmployeeService employeeService, [ServiceDependency] ICustomerService customerService, [ServiceDependency] IPostalInfoLookupService postalInfoLookupService, [ServiceDependency] IBusinessPresentationConverter <Employee, EmployeeDisplay> employeeConverter) { controller.VerifyOrderEntryFlowIsStarted(); _controller = controller; _employeeService = employeeService; _customerService = customerService; _postalInfoLookupService = postalInfoLookupService; _employeeConverter = employeeConverter; }
public PositionSummaryViewModel(IOrdersController ordersController, IEventAggregator eventAggregator, IObservablePosition observablePosition) { if (ordersController == null) { throw new ArgumentNullException("ordersController"); } this.eventAggregator = eventAggregator; this.Position = observablePosition; BuyCommand = ordersController.BuyCommand; SellCommand = ordersController.SellCommand; this.CurrentPositionSummaryItem = new PositionSummaryItem("FAKEINDEX", 0, 0, 0); }
public AbstractRestaurant(IOrdersController ordersController, string restaurantName) { _ordersController = ordersController ?? throw new ArgumentNullException(nameof(ordersController), "Argument is null."); RestaurantName = restaurantName ?? throw new ArgumentNullException(nameof(restaurantName), "Argument is null."); _cashiers = new List <AbstractCashier>(); _cooks = new List <AbstractCook>(); _tables = new List <AbstractTable>(); _productDeliveryWindowsByNumber = new Dictionary <int, AbstractProductDeliveryWindow>(); CashierAdded = delegate { }; CashierRemoved = delegate { }; CookAdded = delegate { }; CookRemoved = delegate { }; TableAdded = delegate { }; TableRemoved = delegate { }; ProductDeliveryWindowAdded = delegate { }; ProductDeliveryWindowRemoved = delegate { }; }
public OrderEntryPresenter(IOrdersController ordersController) { _ordersController = ordersController; }
public PizzaRestaurant(IOrdersController ordersController, string restaurantName) : base(ordersController, restaurantName) { }