public GroupService(MshareDbContext context, ISpendingService spendingService, IEmailService emailService, ILoggingService loggingService) { _context = context; _spendingService = spendingService; _emailService = emailService; _loggingService = loggingService; }
public SpendingController(ISpendingService spendingService, ISpendingRepository spendingRepository, ISpenderRepository spenderRepository, ICurrencyRepository currencyRepository) { _spendingService = spendingService; _spendingRepository = spendingRepository; _spenderRepository = spenderRepository; _currencyRepository = currencyRepository; }
public void SetUp() { AutoMapperInitializer.Reset(); AutoMapperInitializer.Initialize(); _spending = ObjectMother.GetValidSpending(); _spendingRegister = Mapper.Map <SpendingRegisterCommand>(_spending); _spendingRemove = Mapper.Map <SpendingRemoveCommand>(_spending); _mockRepository = new Mock <ISpendingRepository>(); _employeeRepository = new Mock <IEmployeeRepository>(); _service = new SpendingService(_mockRepository.Object, _employeeRepository.Object); }
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)); }
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)); }
public SpendingController(ISpendingRepository spendingRepository) { this._spendingService = new SpendingService(spendingRepository); }
public SpendingsController(ISpendingService spendingService) { this.spendingService = spendingService; }
/// <summary> /// Initializes the SpendingController /// </summary> /// <param name="spendingService"></param> public SpendingController(ISpendingService spendingService) { SpendingService = spendingService; }
/// <summary>Initializes the GroupController</summary> public GroupController(IGroupService groupService, ISpendingService spendingService, IHistoryService historyService) { GroupService = groupService; SpendingService = spendingService; HistoryService = historyService; }
/// <summary>Initializes the SpendingController</summary> public SpendingController(ISpendingService spendingService, IOptimizedService optimizedService) { SpendingService = spendingService; OptimizedService = optimizedService; }
public FinancesController(IFinanceService financeService, ISpendingService spendingService) { this.financeService = financeService ?? throw new ArgumentNullException(nameof(financeService)); this.spendingService = spendingService ?? throw new ArgumentNullException(nameof(spendingService)); }