Ejemplo n.º 1
0
 public FundController(IFundService fundService, IConfiguration configuration, IPortfolioService portfolioService, IUserService userService, IEmailSender emailSender)
 {
     _fundService   = fundService;
     _configuration = configuration;
     _userService   = userService;
     _emailSender   = emailSender;
 }
Ejemplo n.º 2
0
 public FundViewModel(IEventAggregator aggregator, IFundService fundService, IStockConverter stockConverter)
     : base(aggregator)
 {
     _fundService    = fundService;
     _stockConverter = stockConverter;
     EventAggregator.GetEvent <FundChangedEvent>().Subscribe(OnFundChanged, false);
 }
Ejemplo n.º 3
0
 public TaskService(IMapper mapper, ITaskManager taskManager, IFundService fund, IPortfolioService portfolio)
 {
     _mapper      = mapper;
     _taskManager = taskManager;
     _fund        = fund;
     _portfolio   = portfolio;
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 6
0
 public AutoCompleteController(
     IFundService fundService,
     ISubFundService subFundService,
     IShareClassService shareClassService)
 {
     this.fundService       = fundService;
     this.subFundService    = subFundService;
     this.shareClassService = shareClassService;
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 9
0
 public FundDetailsController(
     IEntityDetailsService service,
     IFundService fundService,
     SharedLocalizationService sharedLocalizer)
 {
     this.service         = service;
     this.fundService     = fundService;
     this.sharedLocalizer = sharedLocalizer;
 }
Ejemplo n.º 10
0
 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;
 }
Ejemplo n.º 12
0
        public BondViewModel(IFundService fundService, IEventAggregator eventAggregator)
        {
            this.stock           = new BondStock();
            this.fundService     = fundService;
            this.eventAggregator = eventAggregator;

            this.InitializeCommands();
            this.AddValidationRules();
            this.WireUpEvents();
        }
Ejemplo n.º 13
0
 public FundSubFundsController(
     IRecentService recentService,
     IEntityService service,
     IFundService fundService,
     SharedLocalizationService sharedLocalizer)
 {
     this.recentService   = recentService;
     this.service         = service;
     this.fundService     = fundService;
     this.sharedLocalizer = sharedLocalizer;
 }
Ejemplo n.º 14
0
 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;
 }
Ejemplo n.º 15
0
        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
 }
Ejemplo n.º 17
0
 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;
 }
Ejemplo n.º 18
0
 public ReportsController(
     IFundService fundService,
     IExportingService exportingService,
     IGenerateJournalVoucherReportUseCase journalVoucherReportUseCase,
     IJournalVoucherRuleService journalVoucherRuleService,
     IMonthlyImportExceptionRuleService monthlyImportExceptionRuleService)
 {
     _fundService                       = fundService;
     _exportingService                  = exportingService;
     _journalVoucherReportUseCase       = journalVoucherReportUseCase;
     _journalVoucherRuleService         = journalVoucherRuleService;
     _monthlyImportExceptionRuleService = monthlyImportExceptionRuleService;
 }
Ejemplo n.º 19
0
 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;
 }
Ejemplo n.º 20
0
 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;
 }
Ejemplo n.º 21
0
 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;
 }
Ejemplo n.º 22
0
        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();
        }
Ejemplo n.º 23
0
 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;
 }
Ejemplo n.º 24
0
        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);
        }
Ejemplo n.º 25
0
 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;
 }
Ejemplo n.º 26
0
 public HomeController(IFundService fundService)
 {
     this.fundService = fundService;
 }
Ejemplo n.º 27
0
 public CheckFundController(IFundService fundService, IConfiguration configuration, IFundTransactionHistoryService fundTransactionHistoryService)
 {
     _fundService   = fundService;
     _configuration = configuration;
     _fundTransactionHistoryService = fundTransactionHistoryService;
 }
Ejemplo n.º 28
0
        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));
        }
Ejemplo n.º 29
0
 public FundsController(IFundService fundService)
 {
     _fundService = fundService;
 }
 public FundController(IFundService fundService, TESTFASContext dbContext)
 {
     this.DbContext   = dbContext;
     this.FundService = fundService;
 }