/// <summary> /// Instantiates a new AddAgentViewModel. /// </summary> /// <param name="settingsSvc"></param> /// <param name="messageBus"></param> public AgentManagementViewModel(ISettingsSvc settingsSvc, IMessageBus messageBus) { _settingsSvc = settingsSvc; _messageBus = messageBus; _countryRepository = new CountryRepository(); _countrySubdivisionRepository = new CountrySubdivisionRepository(); _currencyRepository = new CurrencyRepository(); }
//private List<string> _delimitedStates = new List<string> { AgentLocation.MN, AgentLocation.NY, AgentLocation.OK, AgentLocation.OR, AgentLocation.FL }; /// <summary> /// /// </summary> /// <param name="messageBus"></param> /// <param name="settingsSvc"></param> public StagedBillPayViewModel(ISettingsSvc settingsSvc, IMessageBus messageBus) : base(messageBus) { _messageBus = messageBus; _settingsSvc = settingsSvc; _countryRepository = new CountryRepository(); _countrySubdivisionRepository = new CountrySubdivisionRepository(); _amountRangeRepository = new AmountRangeRepository(); }
/// <summary> /// Instantiates a new Send Reversal Parameters View Model. /// </summary> /// <param name="settingsSvc"></param> /// <param name="messageBus"></param> public SendReversalParametersViewModel(ISettingsSvc settingsSvc, IMessageBus messageBus) : base(messageBus) { _settingsSvc = settingsSvc; _messageBus = messageBus; _countryRepository = new CountryRepository(); _countrySubdivisionRepository = new CountrySubdivisionRepository(); _currencyRepository = new CurrencyRepository(); _amountRangeRepository = new AmountRangeRepository(); _feeTypeRepository = new FeeTypeRepository(); _serviceOptionRepository = new ServiceOptionRepository(); _refundReasonRepository = new RefundReasonRepository(); }
/// <summary> /// Create this viewmodel with settings provided by given settingsSvc /// </summary> /// <param name="settingsSvc">Settings service</param> /// <param name="messageBus"></param> public ReceiveViewModel(ISettingsSvc settingsSvc, IMessageBus messageBus) : base(messageBus) { _settingsSvc = settingsSvc; _countryRepository = new CountryRepository(); _countrySubdivisionRepository = new CountrySubdivisionRepository(); _currencyRepository = new CurrencyRepository(); _amountRangeRepository = new AmountRangeRepository(); _feeTypeRepository = new FeeTypeRepository(); _serviceOptionRepository = new ServiceOptionRepository(); _messageBus = messageBus; _messageBus.Subscribe <ProductChangeEvent>(ProductChanged); _messageBus.Subscribe <AgentLocationChangedEvent>(AgentLocationChanged); }
/// <summary> /// Create this viewmodel with settings provided by given settingsSvc /// </summary> /// <param name="settingsSvc">Settings service</param> /// <param name="messageBus"></param> /// <param name="transactionName"></param> public SendParametersViewModel(ISettingsSvc settingsSvc, IMessageBus messageBus, string transactionName) : base(messageBus) { _settingsSvc = settingsSvc; _countryRepository = new CountryRepository(); _countrySubdivisionRepository = new CountrySubdivisionRepository(); _currencyRepository = new CurrencyRepository(); _amountRangeRepository = new AmountRangeRepository(); _feeTypeRepository = new FeeTypeRepository(); _serviceOptionRepository = new ServiceOptionRepository(); _messageBus = messageBus; _transactionName = transactionName; _messageBus.Subscribe <ProductChangeEvent>(ProductChanged); }
/// <summary> /// Instantiate a new Transaction Picker View Model. /// </summary> /// <param name="settingsSvc"></param> /// <param name="messageBus"></param> public TransactionPickerViewModel(ISettingsSvc settingsSvc, IMessageBus messageBus) : base(messageBus) { _settingsSvc = settingsSvc; _messageBus = messageBus; }
/// <summary> /// Create viewmodel with provided settingsSvc and messageBus /// </summary> /// <param name="settingsSvc"></param> /// <param name="messageBus"></param> public AgentSelectorViewModel(ISettingsSvc settingsSvc, IMessageBus messageBus) { _settingsSvc = settingsSvc; _messageBus = messageBus; }