public FundController(IFundService fundService, IConfiguration configuration, IPortfolioService portfolioService, IUserService userService, IEmailSender emailSender) { _fundService = fundService; _configuration = configuration; _userService = userService; _emailSender = emailSender; }
public FundViewModel(IEventAggregator aggregator, IFundService fundService, IStockConverter stockConverter) : base(aggregator) { _fundService = fundService; _stockConverter = stockConverter; EventAggregator.GetEvent <FundChangedEvent>().Subscribe(OnFundChanged, false); }
public TaskService(IMapper mapper, ITaskManager taskManager, IFundService fund, IPortfolioService portfolio) { _mapper = mapper; _taskManager = taskManager; _fund = fund; _portfolio = portfolio; }
public SupplierFundController(ISupplierFundService supplierFund, IEventLogService eventLogService, IFundService fund, ISupplierService supplier, IFundModeService fundMode) { _supplierFund = supplierFund; _eventLogService = eventLogService; _fund = fund; _supplier = supplier; _fundMode = fundMode; }
public FundController( IOptions <AppSettings> appSettings, IFundService fundService, IScopedCancellationToken scopedCancellationToken) : base(appSettings) { this.fundService = fundService; this.scopedCancellationToken = scopedCancellationToken; }
public AutoCompleteController( IFundService fundService, ISubFundService subFundService, IShareClassService shareClassService) { this.fundService = fundService; this.subFundService = subFundService; this.shareClassService = shareClassService; }
public FundViewModel(IFundService fundService, IEventAggregator eventAggregator) { this.Fund = new ObservableCollection <Stock>(); this.FundSummary = new FundSummary(); this.fundService = fundService; this.eventAggregator = eventAggregator; this.InitializeCommands(); this.WireUpEvents(); }
public ChallengesController( IFundService fundService, IImageService imageService, IOptions <PagingOptions> defaultPagingOptionsAccessor) { _fundService = fundService; _imageService = imageService; _defaultPagingOptions = defaultPagingOptionsAccessor.Value; }
public FundDetailsController( IEntityDetailsService service, IFundService fundService, SharedLocalizationService sharedLocalizer) { this.service = service; this.fundService = fundService; this.sharedLocalizer = sharedLocalizer; }
public PortfolioController(IPortfolioService portfolioService, IFundService fundService, IHomepageCMSService homepageCMSService, IConfiguration configuration, IUserService userService, IEmailSender emailSender) { _portfolioService = portfolioService; _homepageCMSService = homepageCMSService; _fundService = fundService; _configuration = configuration; _userService = userService; _emailSender = emailSender; }
public FundEditOperationLayer( ITransactionService transactionService, IFundService fundService, ITransactionRouteService transactionRouteService) { _transactionService = transactionService; _fundService = fundService; _transactionRouteService = transactionRouteService; }
public BondViewModel(IFundService fundService, IEventAggregator eventAggregator) { this.stock = new BondStock(); this.fundService = fundService; this.eventAggregator = eventAggregator; this.InitializeCommands(); this.AddValidationRules(); this.WireUpEvents(); }
public FundSubFundsController( IRecentService recentService, IEntityService service, IFundService fundService, SharedLocalizationService sharedLocalizer) { this.recentService = recentService; this.service = service; this.fundService = fundService; this.sharedLocalizer = sharedLocalizer; }
public FundController(IAuthorizationService authorizationService, IFundService fundService, ICatalogService catalogService, IEnumMappingService enumMappingService) : base(authorizationService, enumMappingService, CONTROLLER_NAME) { _authorizationService = authorizationService; _enumMappingService = enumMappingService; _fundService = fundService; _cacheService = CacheStorageFactory.Current; _catalogService = catalogService; }
public AddStockViewModel(IEventAggregator eventAggregator, IFundService fundService) : base(eventAggregator) { _fundService = fundService; this.AddStockCommand = new DelegateCommand <object>(this.AddStock, this.CanAddStock); StockTypes = Enum.GetValues(typeof(StockType)).Cast <StockType>().ToList(); OnPriceChanged(); OnQuantityChanged(); }
public AddFundWindowViewModel(IFundService fundService, IStaticReferences staticReferences) { AddFundCommand = new AddFundCommand(this, fundService); _fundService = fundService; _fundLaunch = DateExtentions.InitialDate(); _validationErrors = new ValidationErrors(); _validationErrors.ErrorsChanged += ChangedErrorsEvents; _staticReferences = staticReferences; _MinimumInvestment = decimal.One; _selectedHurdleType = "None"; _HighWaterMark = false; // to set decimal points i might need to use a converter }
public AddressController( IOptions <AppSettings> appSettings, IFundService fundService, IStakeService stakeService, IInvestmentService investmentService, IScopedCancellationToken scopedCancellationToken) : base(appSettings) { this.fundService = fundService; this.stakeService = stakeService; this.investmentService = investmentService; this.scopedCancellationToken = scopedCancellationToken; }
public ReportsController( IFundService fundService, IExportingService exportingService, IGenerateJournalVoucherReportUseCase journalVoucherReportUseCase, IJournalVoucherRuleService journalVoucherRuleService, IMonthlyImportExceptionRuleService monthlyImportExceptionRuleService) { _fundService = fundService; _exportingService = exportingService; _journalVoucherReportUseCase = journalVoucherReportUseCase; _journalVoucherRuleService = journalVoucherRuleService; _monthlyImportExceptionRuleService = monthlyImportExceptionRuleService; }
public InvestmentService( IOptions <AppSettings> appSettings, IFundService fundService, IStakeService stakeService, IQuantityProviderFactory quantityProviderFactory, ICurrencyConverter currencyConverter, ITransactionRepository transactionRepository, IOperationRepository operationRepository, IHttpContextAccessor httpContextAccessor, IScopedCancellationToken scopedCancellationToken) : base(appSettings, currencyConverter, transactionRepository, operationRepository, httpContextAccessor, scopedCancellationToken) { this.fundService = fundService; this.stakeService = stakeService; this.quantityProviderFactory = quantityProviderFactory; }
public WindowFactory(IFundService fundService, ITransactionService transactionService, IAdminService adminService, IImportService importService, ISettingService settingService, ITransferAgencyService investorService, IStaticReferences staticReferences, IFactTableService factTableService, IPriceService priceService) { _fundService = fundService; _investorService = investorService; _transactionService = transactionService; _adminService = adminService; _settingService = settingService; _staticReferences = staticReferences; _factTableService = factTableService; _priceService = priceService; _importService = importService; }
public TaskController(ITaskService taskService, IConfiguration configuration, IFundService fundService, IFundTransactionHistoryService fundTransactionHistoryService, IEmailSender emailSender, IUserService userService, ITransactionHistoryService transactionHistoryService, ITaskCompletedService taskCompletedService, IPortfolioService portfolio, IViettelPay viettelPay, IOrderRequestService orderRequestService, IGlobalConfigurationService globalConfigurationService) { _taskService = taskService; _configuration = configuration; _fundService = fundService; _fundTransactionHistoryService = fundTransactionHistoryService; _emailSender = emailSender; _userService = userService; _transactionHistoryService = transactionHistoryService; _taskCompletedService = taskCompletedService; _portfolio = portfolio; _viettelPay = viettelPay; _orderRequestService = orderRequestService; _globalConfigurationService = globalConfigurationService; }
public void Initialize() { //Mock service creation Mock <IRepository <V_FundWithLastValue> > mock = new Mock <IRepository <V_FundWithLastValue> >(); mock.Setup(m => m.GetQuery()).Returns(new List <V_FundWithLastValue> { new V_FundWithLastValue { Id = 1, Name = "Fund 1", Description = "Fund description 1", Value = 1.33m, Date = new DateTime() }, new V_FundWithLastValue { Id = 2, Name = "Fund 2", Description = "Fund description 2", Value = 1.33m, Date = new DateTime() }, new V_FundWithLastValue { Id = 3, Name = "Fund 3", Description = "Fund description 3", Value = 1.33m, Date = new DateTime() }, new V_FundWithLastValue { Id = 4, Name = "Fund 4", Description = "Fund description 4", Value = 1.33m, Date = new DateTime() }, new V_FundWithLastValue { Id = 5, Name = "Fund 5", Description = "Fund description 5", Value = 1.33m, Date = new DateTime() }, new V_FundWithLastValue { Id = 6, Name = "Fund 6", Description = "Fund description 6", Value = 1.33m, Date = new DateTime() }, new V_FundWithLastValue { Id = 7, Name = "Fund 7", Description = "Fund description 7", Value = 1.33m, Date = new DateTime() }, new V_FundWithLastValue { Id = 8, Name = "Fund 8", Description = "Fund description 8", Value = 1.33m, Date = new DateTime() }, new V_FundWithLastValue { Id = 9, Name = "Fund 9", Description = "Fund description 9", Value = 1.33m, Date = new DateTime() }, new V_FundWithLastValue { Id = 10, Name = "Fund 10", Description = "Fund description 10", Value = 1.33m, Date = new DateTime() } }.AsQueryable()); fundRepository = mock.Object; this.fundService = new FundService(fundRepository); //initialize automapper AutoMapperConfig.Configure(); }
public StakeService( IOptions <AppSettings> appSettings, IEtherClient etherClient, IGraphClient graphClient, IEthplorerClient ethplorerClient, IFundService fundService, ICurrencyConverter currencyConverter, IStakingPowerRepository stakingPowerRepository, ITransactionRepository transactionRepository, IOperationRepository operationRepository, IHttpContextAccessor httpContextAccessor, IScopedCancellationToken scopedCancellationToken) : base(appSettings, currencyConverter, transactionRepository, operationRepository, httpContextAccessor, scopedCancellationToken) { this.etherClient = etherClient; this.graphClient = graphClient; this.ethplorerClient = ethplorerClient; this.fundService = fundService; this.stakingPowerRepository = stakingPowerRepository; }
public AllFundsViewModel(IFundService fundService, ITransactionService transactionService, IPortfolioService portfolioService, IStaticReferences staticReferences, IWindowFactory windowFactory) { _fundService = fundService; _portfolioService = portfolioService; _transactionService = transactionService; _staticReferences = staticReferences; _windowFactory = windowFactory; _lbFunds = _fundService.GetAllFundSymbols(); _currentFund = (lbFunds.Count != 0) ? _fundService.GetFund(_lbFunds[0]) : null; _asOfDate = (_currentFund != null) ? _staticReferences.GetMostRecentLockedDate(_currentFund.FundId) : DateTime.Today; _priceTable = _staticReferences.GetPriceTable(_asOfDate); SelectFundCommand = new SelectFundCommand(this, fundService, staticReferences); ShowNewTradeCommand = new ActionCommand(OpenNewTradeWindow); ShowEditTradeCommand = new ActionCommand(OpenEditTradeWindow); ShowDeleteTradeCommand = new ActionCommand(DeleteTradeDialog); ShowRestoreTradeCommand = new ActionCommand(RestoreTradeDialog); ShowNewFXTradeCommand = new ActionCommand(OpenNewFxTradeWindow); ShowNewCashTradeCommand = new ActionCommand(OpenNewCashTradeWindow); ShowEditCashTradeCommand = new ActionCommand(OpenEditCashTradeWindow); ShowNewInvestorActionCommand = new ActionCommand(OpenInvestorActionWindow); ShowFundInitialisationCommand = new ActionCommand(OpenFundInitialisationWindow); ShowFundPropertiesCommand = new ActionCommand(OpenFundPropertiesWindow); ShowFundMetricsCommand = new ActionCommand(OpenMetricsWindow); ShowPositionDetailsCommand = new ActionCommand(OpenPositionDetailWindow); ShowNavSummaryCommand = new ActionCommand(OpenNavSummaryWindow); DateSelectionChangedCommand = new ActionCommand(ChangeDateCommand); RefreshFundCommand = new ActionCommand(RefreshCurrentFund); }
public SettingsCMSController ( IPortfolioService portfolioService, IHomepageCMSService homepageCMSService, IIntroducingSettingService introducingSettingService, IContactCMSService contactConfigurationService, IMaintainingFeeService maintainingFeeService, IWithdrawFeeService withdrawFeeService, IInvestmentTargetCMSService investmentTargetCMSService, IConfiguration configuration, IFundService fundService ) { _portfolioService = portfolioService; _homepageCMSService = homepageCMSService; _introducingSettingService = introducingSettingService; _contactConfigurationService = contactConfigurationService; _maintainingFeeService = maintainingFeeService; _withdrawFeeService = withdrawFeeService; _investmentTargetCMSService = investmentTargetCMSService; _configuration = configuration; _fundService = fundService; }
public HomeController(IFundService fundService) { this.fundService = fundService; }
public CheckFundController(IFundService fundService, IConfiguration configuration, IFundTransactionHistoryService fundTransactionHistoryService) { _fundService = fundService; _configuration = configuration; _fundTransactionHistoryService = fundTransactionHistoryService; }
public async Task <List <FundTabListViewModel> > GetAllFundTabViewModel(IFundService fundService) { var fundList = await fundService.GetAllAsync().ConfigureAwait(false); return(await Task.Run(() => fundList?.Select(f => new FundTabListViewModel(f)).ToList()).ConfigureAwait(false)); }
public FundsController(IFundService fundService) { _fundService = fundService; }
public FundController(IFundService fundService, TESTFASContext dbContext) { this.DbContext = dbContext; this.FundService = fundService; }