public RequestForQuoteToolBarViewModel(IOptionRequestParser optionRequestParser, IClientManager clientManager, IBookManager bookManager) { AddNewRequestCommand = new AddRequestCommand(this); ClearNewRequestCommand = new ClearNewRequestCommand(this); GetTodaysRequestsCommand = new GetTodaysRequestsCommand(this); this.optionRequestParser = optionRequestParser; this.clientManager = clientManager; this.bookManager = bookManager; InitializeCollections(); InitializeEventSubscriptions(); }
public RequestForQuoteGridViewModel(IBookManager bookManager, IClientManager clientManager, IOptionRequestParser optionRequestParser, IOptionRequestPricer optionRequestPricer, IChatServiceManager chatServiceManager, IUnderlyingManager underlyingManager, IOptionRequestPersistanceManager optionRequestPersistanceManager, IEventAggregator eventAggregator, IConfigurationManager configManager, IUserManager userManager) { if (optionRequestPricer == null) { throw new ArgumentNullException("optionRequestPricer"); } if (optionRequestParser == null) { throw new ArgumentNullException("optionRequestParser"); } if (clientManager == null) { throw new ArgumentNullException("clientManager"); } if (bookManager == null) { throw new ArgumentNullException("bookManager"); } if (userManager == null) { throw new ArgumentNullException("userManager"); } if (underlyingManager == null) { throw new ArgumentNullException("underlyingManager"); } if (chatServiceManager == null) { throw new ArgumentNullException("chatServiceManager"); } if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } if (optionRequestPersistanceManager == null) { throw new ArgumentNullException("optionRequestPersistanceManager"); } if (configManager == null) { throw new ArgumentNullException("configManager"); } this.optionRequestParser = optionRequestParser; this.optionRequestPricer = optionRequestPricer; this.clientManager = clientManager; this.bookManager = bookManager; this.userManager = userManager; this.chatServiceManager = chatServiceManager; this.underlyingManager = underlyingManager; this.eventAggregator = eventAggregator; this.optionRequestPersistanceManager = optionRequestPersistanceManager; this.configManager = configManager; InitializeCommands(); InitializeCollections(); InitializeEventSubscriptions(); }