コード例 #1
0
 public IncomeController(UserManager <User> userManager,
                         IMapper mapper, IIncomeService incomeService)
 {
     _userManager   = userManager;
     _mapper        = mapper;
     _incomeService = incomeService;
 }
コード例 #2
0
 public TransactionData(IExpenseService expenseService, IIncomeService incomeService, IBalanceAdjustmentService adjustmentService, IPerformanceService performanceService)
 {
     _expenseService     = expenseService;
     _incomeService      = incomeService;
     _adjustmentService  = adjustmentService;
     _performanceService = performanceService;
 }
コード例 #3
0
 public IncomesController(IIncomeService incomeService, IMapper mapper, IJwtService jwtService)
     : base(jwtService)
 {
     this.incomeService = incomeService;
     this.mapper        = mapper;
     this.jwtService    = jwtService;
 }
コード例 #4
0
 public ChartService(IIncomeService incomeService, IOutGoingService outGoingService, ISourceOfAmountService sourceOfAmountService, ITypeOfOutgoingService typeOfOutgoingService)
 {
     _incomeService         = incomeService;
     _outGoingService       = outGoingService;
     _sourceOfAmountService = sourceOfAmountService;
     _typeOfOutgoingService = typeOfOutgoingService;
 }
コード例 #5
0
 public IncomeController(IIncomeService IncomeService)
 {
     if(IncomeService == null)
     {
         throw new ArgumentNullException(nameof(IncomeService));
     }
     _IncomeService = IncomeService;
 }
コード例 #6
0
 public IncomeController(IIncomeService incomeService)
 {
     if (incomeService == null)
     {
         throw new ArgumentNullException(nameof(incomeService));
     }
     _incomeService = incomeService;
 }
コード例 #7
0
 public IncomeController(IMapper mapper, IUriService uriService, IIdentityService identityService, IBudgetService budgetService, IPeriodService periodService, IIncomeService incomeService)
 {
     _mapper          = mapper;
     _uriService      = uriService;
     _identityService = identityService;
     _budgetService   = budgetService;
     _periodService   = periodService;
     _incomeService   = incomeService;
 }
コード例 #8
0
        public IncomeController(IUserService userService, IIncomeService incomeService)
        {
            if (userService.GetAll().Any())
            {
                _user = userService.GetAll().ToList()[0];
            }

            _incomeService = incomeService;
        }
コード例 #9
0
 public FinanceService(
     IExpensesService expensesService,
     IIncomeService incomeService,
     ITaxService taxService)
 {
     _expensesService = expensesService ?? throw new ArgumentNullException(nameof(expensesService));
     _incomeService   = incomeService ?? throw new ArgumentNullException(nameof(incomeService));
     _taxService      = taxService ?? throw new ArgumentNullException(nameof(taxService));
 }
コード例 #10
0
        public ResultController(IUserService userService, IExpenseService expenseService, IIncomeService incomeService)
        {
            if (userService.GetAll().Any())
            {
                _user = userService.GetAll().ToList()[0];
            }

            _expenseService = expenseService;
            _incomeService  = incomeService;
        }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameService"/> class.
 /// </summary>
 /// <param name="injuryService">Injury service</param>
 /// <param name="incomeService">Income service</param>
 /// <param name="experienceService">Experience service</param>
 /// <param name="gangerManager">Ganger manager</param>
 public GameService(
     IInjuryService injuryService,
     IIncomeService incomeService,
     IExperienceService experienceService,
     IGangerManager gangerManager)
 {
     _injuryService     = injuryService ?? throw new ArgumentNullException(nameof(injuryService));
     _incomeService     = incomeService ?? throw new ArgumentNullException(nameof(incomeService));
     _experienceService = experienceService ?? throw new ArgumentNullException(nameof(experienceService));
     _gangerManager     = gangerManager ?? throw new ArgumentNullException(nameof(gangerManager));
 }
コード例 #12
0
 public AccountManagementController(IExpenditureService expenditureService, IBankAccountService bankAccountService, IBudgetPlanService budgetPlanService, IExpenditureTypeService expenditureTypeService,
                                    IPaymentMethodService paymentMethodService, IIncomeService incomeService, IAtmWithdrawService atmWithdrawService) : base(bankAccountService)
 {
     this._budgetPlanService      = budgetPlanService;
     this._expenditureService     = expenditureService;
     this._expenditureTypeService = expenditureTypeService;
     this._bankAccountService     = bankAccountService;
     this._paymentMethodService   = paymentMethodService;
     this._incomeService          = incomeService;
     this._atmWithdrawService     = atmWithdrawService;
 }
コード例 #13
0
 public SpendingsController(
     ISpendingService spendingService,
     ICNWService cnwService,
     IFinanceService financeService,
     IIncomeService incomeService,
     IBaseService baseService)
 {
     this.spendingService = spendingService ?? throw new ArgumentNullException(nameof(spendingService));
     this.cnwService      = cnwService ?? throw new ArgumentNullException(nameof(cnwService));
     this.financeService  = financeService ?? throw new ArgumentNullException(nameof(financeService));
     this.incomeService   = incomeService ?? throw new ArgumentNullException(nameof(incomeService));
     this.baseService     = baseService ?? throw new ArgumentNullException(nameof(baseService));
 }
コード例 #14
0
        public IncomeController(IIncomeService incomeService, ILogger logger)
        {
            if (incomeService == null)
            {
                throw new ArgumentNullException("incomeService");
            }

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            _incomeService = incomeService;
            _logger        = logger;
        }
コード例 #15
0
 public AuthorizationService(
     IAccountService accountService,
     IIncomeService incomeService,
     IExpenseService expenseService,
     ITransferService transferService,
     ICategoryService categoryService,
     IIdentityService identityService)
 {
     _accountService  = accountService;
     _incomeService   = incomeService;
     _expenseService  = expenseService;
     _transferService = transferService;
     _categoryService = categoryService;
     _userId          = identityService.GetCurrentUserId();
 }
コード例 #16
0
 public FinanceService(
     IFinanceRepository financeRepository,
     ISpendingService spendingService,
     IIncomeService incomeService,
     IRemindersService remindersService,
     IBaseService baseService,
     ICNWService cnwService)
 {
     this.financeRepository = financeRepository ?? throw new ArgumentNullException(nameof(financeRepository));
     this.spendingService   = spendingService ?? throw new ArgumentNullException(nameof(spendingService));
     this.incomeService     = incomeService ?? throw new ArgumentNullException(nameof(incomeService));
     this.remindersService  = remindersService ?? throw new ArgumentNullException(nameof(remindersService));
     this.baseService       = baseService ?? throw new ArgumentNullException(nameof(baseService));
     this.cnwService        = cnwService ?? throw new ArgumentNullException(nameof(cnwService));
 }
コード例 #17
0
        public IncomeViewModel(
            IBaseService baseService,
            IIncomeService incomeService,
            IEventAggregator eventAggregator
            ) : base(baseService)
        {
            _baseService     = baseService;
            _incomeService   = incomeService;
            _eventAggregator = eventAggregator;

            TabName = "Inkomst";

            RollDie = new DelegateCommand(ExecuteRollDie);
            IncomeUIEventUIEventHandler = new CustomDelegateCommand(ExecuteIncomeUIEventUIEventHandler, o => true);

            _eventAggregator.GetEvent <NewFiefLoadedEvent>().Subscribe(ExecuteNewFiefLoadedEvent);
        }
コード例 #18
0
        public FinancialBalanceController(IIncomeService incomeService, IOutGoingService outGoingService,
                                          ITypeOfOutgoingService typeOfOutgoingService, ISourceOfAmountService sourceOfAmountService)
        {
            _incomeService         = incomeService;
            _outGoingService       = outGoingService;
            _typeOfOutgoingService = typeOfOutgoingService;
            _sourceOfAmountService = sourceOfAmountService;

            try
            {
                _idLoggedUser = System.Web.HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>().FindById(System.Web.HttpContext.Current.User.Identity.GetUserId()).Id;
            }
            catch (Exception ex)
            {
                _idLoggedUser = string.Empty;
            }
        }
コード例 #19
0
 public AddIncomeHandler(IIncomeService incomeService)
 {
     _incomeService = incomeService;
 }
コード例 #20
0
 public IncomesController(SpendMonitorContext context, IIncomeService incService)
 {
     _context    = context;
     _incService = incService;
 }
コード例 #21
0
ファイル: IncomeController.cs プロジェクト: MartinM993/VMSM
 public IncomeController(IIncomeService incomeService, IVendingMachineService vendingMachineService, UserManager <AppUser> userManager) : base(userManager)
 {
     _incomeService         = incomeService;
     _vendingMachineService = vendingMachineService;
 }
コード例 #22
0
 public IncomeMongoDBController(IIncomeService incomeService)
 {
     _incomeService = incomeService;
 }
コード例 #23
0
 public IncomesController(IIncomeService incomeService)
 {
     _incomeService = incomeService;
 }
コード例 #24
0
 public IncomeController(IIncomeService service)
 {
     this.service = service;
 }
コード例 #25
0
 public IncomeController(IIncomeService service)
 {
     _incomeService = service;
 }
コード例 #26
0
 /// <summary>
 /// Constructor for injection.
 /// </summary>
 /// <param name="branchServive">The branch service to inject.</param>
 public IncomeController(IIncomeService incomeService, ICommonResource commonResource)
 {
     _incomeService  = incomeService;
     _commonResource = commonResource;
 }
コード例 #27
0
 public HandbookController(IConsumptionService consumptionService, IIncomeService incomeService, IProductService productService)
 {
     _consumptionService = consumptionService;
     _incomeService      = incomeService;
     _productService     = productService;
 }
コード例 #28
0
 public IncomeController(IIncomeService incomeService)
     : base()
 {
     _incomeService = incomeService;
 }
コード例 #29
0
 public IncomesController(IIncomeService incomeService, ICommandDispatcher commandDispatcher)
 {
     _incomeService     = incomeService;
     _commandDispatcher = commandDispatcher;
 }
コード例 #30
0
 public IncomeController(IIncomeService incomeService, ILogger logger)
 {
     _incomeService = incomeService;
     _logger        = logger;
 }
コード例 #31
0
 public IncomeController(IIncomeService incomeService, IBankAccountService bankAccountService) : base(bankAccountService)
 {
     this._incomeService = incomeService;
 }