public AddEmployeeCostToBudgetJob( IBudgetRepository budgetRepository, IEmployeeCostService employeeCostService) { _budgetRepository = budgetRepository; _employeeCostService = employeeCostService; }
public RecalculateBudgetJob( IBudgetRepository budgetRepository, ICommissionCalculationService commissionCalculationService) { _budgetRepository = budgetRepository; _commissionCalculationService = commissionCalculationService; }
/// <summary> /// Initializes a new instance of the <see cref="BudgetMaintenanceService" /> class. /// </summary> /// <exception cref="System.ArgumentNullException">budgetRepository</exception> public BudgetMaintenanceService( [NotNull] IBudgetRepository budgetRepository, [NotNull] IBudgetBucketRepository bucketRepo, [NotNull] ILogger logger, [NotNull] MonitorableDependencies monitorableDependencies) { if (budgetRepository == null) { throw new ArgumentNullException(nameof(budgetRepository)); } if (bucketRepo == null) { throw new ArgumentNullException(nameof(bucketRepo)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (monitorableDependencies == null) throw new ArgumentNullException(nameof(monitorableDependencies)); this.budgetRepository = budgetRepository; this.logger = logger; this.monitorableDependencies = monitorableDependencies; BudgetBucketRepository = bucketRepo; CreateNewBudgetCollection(); }
public GetUsersAvailableForBudgetQuery( IUserRepository userRepository, IBudgetRepository budgetRepository) { _userRepository = userRepository; _budgetRepository = budgetRepository; }
public AppEngine(IExcel iExcel, IEventAggregator iAgregator, IOutput iOutput, IImport import, IBudgetRepository repository) { _IExcel = iExcel; _iAggregator = iAgregator; _iOutput = iOutput; _import = import; _repository = repository; _iAggregator.SubsribeEvent(this); string path = _repository.Options.Item.CategoryPath; string reportPath = _repository.Options.Item.DocumentPath; _repository.Categories.Load(path); _repository.Reports.Load(reportPath); _iOutput.ShowReports(_repository.Reports.Item.Reports); _iAggregator.PublishEvent(new PathChangedEvent() { Path = path }); MenuItem menuStructure = MenuFactory.GetMenu(); _iOutput.AttachMenu(menuStructure); ProceedEditRules(); }
public DashboardService( [NotNull] IWidgetService widgetService, [NotNull] IBudgetBucketRepository bucketRepository, [NotNull] IBudgetRepository budgetRepository, [NotNull] ILogger logger, [NotNull] MonitorableDependencies monitorableDependencies) { if (widgetService == null) { throw new ArgumentNullException(nameof(widgetService)); } if (bucketRepository == null) { throw new ArgumentNullException(nameof(bucketRepository)); } if (budgetRepository == null) { throw new ArgumentNullException(nameof(budgetRepository)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (monitorableDependencies == null) throw new ArgumentNullException(nameof(monitorableDependencies)); this.widgetService = widgetService; this.bucketRepository = bucketRepository; this.budgetRepository = budgetRepository; this.logger = logger; this.monitoringServices = monitorableDependencies; this.monitoringServices.DependencyChanged += OnMonitoringServicesDependencyChanged; }
public FinanceServiceMock( IUnitOfWork unitOfWork = null, IDeliverableRepository deliverableRepository = null, ITypeOfWorkRepository typeOfWorkRepository = null, IPaymentTermRepository paymentTermRepository = null, IInvoiceStatusRepository invoiceStatusRepository = null, IVendorRepository vendorRepository = null, ICalendarRepository calendarRepository = null, IWBSFiscalYear_ChannelRepository wbsFiscalYearChannelRepository = null, IGLAccountRepository glAccountRepository = null, IProductionMethodTypeRepository productionMethodTypeRepository = null, IInvoiceHeaderRepository invoiceHeaderRepository = null, IInvoiceLineRepository invoiceLineRepository = null, ILogService logService = null, IDeliverableBudgetRepository Deliverablebudgetrepository = null, IUserChannelRepository userChannelRepository = null, IBudgetTypeRepository BudgetTypeRepository = null, IBudgetRepository budgetRepository = null, IApInvoiceBatchRepository apInvoiceBatchRepository = null, IInternalRepository internalRepository = null, IChannelCostCenterRepository channelCostCenterRepository = null, IChannelProfitCenterRepository channelProfitCenterRepository = null, IBudgetByChannelRepository _iBudgetByChannelRepository = null, IActualsReconciliationDashboardRepository actualsReconciliationDashboardRepository = null, IActualsReconciliationRepository actualsReconciliationRepository = null, IBudgetByCategoryRollupRepository budgetByCategoryRollupRepository = null, IWBS_DeliverablesRepository _iWBS_DeliverablesRepository = null, IUserRepository iUserRepository = null, IWorkOrderTransactionRepositry iworkOrderTransactionRepositry = null, IWBSElementRepository iwbselementRepository = null) : base( unitOfWork, deliverableRepository, typeOfWorkRepository, paymentTermRepository, invoiceStatusRepository, vendorRepository, calendarRepository, wbsFiscalYearChannelRepository, glAccountRepository, productionMethodTypeRepository, invoiceHeaderRepository, invoiceLineRepository, logService, Deliverablebudgetrepository, userChannelRepository, BudgetTypeRepository, budgetRepository, apInvoiceBatchRepository, internalRepository, channelCostCenterRepository, channelProfitCenterRepository, _iBudgetByChannelRepository, actualsReconciliationDashboardRepository, actualsReconciliationRepository, budgetByCategoryRollupRepository, _iWBS_DeliverablesRepository, iUserRepository, iworkOrderTransactionRepositry, iwbselementRepository ) { }
public UpdateBudgetCommand( IBudgetRepository budgetRepository, IUnitOfWork unitOfWork) { _budgetRepository = budgetRepository; _unitOfWork = unitOfWork; }
/// <summary> /// Standard constructor. /// </summary> /// <param name="accountRepository">Repo to use for account information.</param> /// <param name="budgetRepository">Repo to use for budget information.</param> /// <param name="userRepository">Repo to user for user information.</param> /// <param name="requestLogger">Logger used to log information about request.</param> public UserController(IAccountRepository accountRepository, IBudgetRepository budgetRepository, IUserRepository userRepository, IApiRequestLogger requestLogger) { RequestLogger = requestLogger; UserRepo = userRepository; AccountRepo = accountRepository; BudgetRepo = budgetRepository; }
public BudgetService(IBudgetRepository budgetRepository, IViewRenderService viewRenderService, IEmailService emailService) { _budgetRepository = budgetRepository; _viewRenderService = viewRenderService; _emailService = emailService; }
public AuthController(IAuthRepository repo, IMapper mapper, IConfiguration config, IBudgetRepository budget) { _budget = budget; _config = config; _repo = repo; _mapper = mapper; }
public GetBudgetLeftQuery( IBudgetRepository budgetRepository, IUserRepository userRepository) { _budgetRepository = budgetRepository; _userRepository = userRepository; }
public GetBudgetByYearQuery( IUserRepository userRepository, IBudgetRepository budgetRepository) { _userRepository = userRepository; _budgetRepository = budgetRepository; }
/// <summary> /// Initializes a new instance of the <see cref="BudgetMaintenanceService" /> class. /// </summary> /// <exception cref="System.ArgumentNullException">budgetRepository</exception> public BudgetMaintenanceService( [NotNull] IBudgetRepository budgetRepository, [NotNull] IBudgetBucketRepository bucketRepo, [NotNull] ILogger logger, [NotNull] MonitorableDependencies monitorableDependencies) { if (budgetRepository == null) { throw new ArgumentNullException(nameof(budgetRepository)); } if (bucketRepo == null) { throw new ArgumentNullException(nameof(bucketRepo)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (monitorableDependencies == null) { throw new ArgumentNullException(nameof(monitorableDependencies)); } this.budgetRepository = budgetRepository; this.logger = logger; this.monitorableDependencies = monitorableDependencies; BudgetBucketRepository = bucketRepo; CreateNewBudgetCollection(); }
public CreateNewBudgetForProjectCommandHandler( IBudgetRepository budgetRepository, ILogger <CreateNewBudgetForProjectCommandHandler> logger) { _budgetRepository = budgetRepository; _logger = logger; }
public ExpenditureService(IUnitOfWork uow, IExpenditureRepository expenditureRepository, IExpenditureDetailRepository expenditureDetailRepository, IBudgetRepository budgetRepository) { _unitOfWork = uow; _expenditureRepository = expenditureRepository; _expenditureDetailRepository = expenditureDetailRepository; _budgetRepository = budgetRepository; }
public Handler(IBudgetRepository budgetRepository, IUserRepository userRepository, IMapper mapper, IAuthenticationProvider authenticationProvider) { _budgetRepository = budgetRepository; _userRepository = userRepository; _mapper = mapper; _authenticationProvider = authenticationProvider; }
public ExpenseService(IMapper mapper, IBudgetRepository budgetRepo, IExpenseRepository expenseRepo, IDetailedCategoryRepository detailedCRepo) { _mapper = mapper; _budgetRepo = budgetRepo; _expenseRepo = expenseRepo; _detailedCRepo = detailedCRepo; }
public Handler (IBudgetCategoryRepository budgetCategoryRepository, IBudgetRepository budgetRepository, IMapper mapper, IAuthenticationProvider authenticationProvider) : base(budgetCategoryRepository, mapper, authenticationProvider) { _budgetRepository = budgetRepository; }
/// <summary> /// Get Available Budget Category /// </summary> /// <param name="budgetRepository">Budget Repository</param> /// <returns>Category List</returns> internal static IEnumerable <SelectListItem> GetAvailableBudgetCategory(IBudgetRepository budgetRepository) { return(budgetRepository.GetAvailableBudgetCategory().Tables[0].AsEnumerable().Select(result => new SelectListItem { Text = result.Field <string>("CategoryName"), Value = TypeConversionHelper.GetDefaultValueIfNull <string>(result.Field <int>("CategoryId")) })); }
public BudgetService(IUserRepository userRepository, IBudgetRepository budgetRepository, IExpenseRepository expenseRepository, IIncomeRepository incomeRepository) { _userRepository = userRepository; _budgetRepository = budgetRepository; _expenseRepository = expenseRepository; _incomeRepository = incomeRepository; }
public Handler (ITransactionRepository transactionRepository, IBudgetRepository budgetRepository, IMapper mapper, IAuthenticationProvider authenticationProvider) : base(null, transactionRepository, mapper, authenticationProvider) { _budgetRepository = budgetRepository; }
public BudgetDataProcessor(IBudgetRepository budgetRepository) { var connectionString = "mongodb://localhost:27017"; var database = "test_budgets"; _budgetRepository = budgetRepository; _budgetRepository.Initialize(connectionString, database); }
public UserService(IUserRepository userRepository, IBudgetRepository budgetRepository, IEncrypter encrypter, IMapper mapper) { _userRepository = userRepository; _budgetRepository = budgetRepository; _encrypter = encrypter; _mapper = mapper; }
public CreateBudgetsForAllActiveUsersCommand( IUserRepository userRepository, IBudgetRepository budgetRepository, IUnitOfWork unitOfWork) { _userRepository = userRepository; _budgetRepository = budgetRepository; _unitOfWork = unitOfWork; }
public TransferBudgetCommand( IUserRepository userRepository, IBudgetRepository budgetRepository, IUnitOfWork unitOfWork) { _userRepository = userRepository; _budgetRepository = budgetRepository; _unitOfWork = unitOfWork; }
public BudgetController( IBudgetRepository budgetRepo, IAuthorizationService authorizationService, UserManager <ApplicationUser> userManager) { _budgetRepo = budgetRepo; _authorizationService = authorizationService; _userManager = userManager; }
public RepositoryUnitOfWork(IUserRepository userRepository = null, IBudgetRepository budgetRepository = null, ICategoryRepository categoryRepository = null, ITransactionRepository transactionRepository = null, IBillRepository billRepository = null, IDbConnection connection = null) { this.userRepository = userRepository; this.budgetRepository = budgetRepository; this.categoryRepository = categoryRepository; this.transactionRepository = transactionRepository; this.billRepository = billRepository; this.connection = connection; }
public AddRequestCommand( IBudgetRepository budgetRepository, IRequestRepository requestRepository, IUnitOfWork unitOfWork) { _budgetRepository = budgetRepository; _requestRepository = requestRepository; _unitOfWork = unitOfWork; }
public CreateUserCommand( IUserRepository userRepository, IBudgetRepository budgetRepository, IUnitOfWork unitOfWork) { _userRepository = userRepository; _budgetRepository = budgetRepository; _unitOfWork = unitOfWork; }
protected BaseBudgetHandler (IBudgetRepository budgetRepository, IMapper mapper, IAuthenticationProvider authenticationProvider) { BudgetRepository = budgetRepository; Mapper = mapper; AuthenticationProvider = authenticationProvider; }
public BudgetServices(IBudgetRepository budgets, IAccountRepository accounts, ICategoryRepository categories, ICategory_BudgetRepository categories_budgets, ITransactionRepository transactions, IAccountServices accountServices, ICategoryServices categoryServices) { _budgets = budgets; _accounts = accounts; _categories = categories; _categories_budgets = categories_budgets; _transactions = transactions; _accountServices = accountServices; _categoryServices = categoryServices; }
public BudgetService(IBudgetRepository BudgetRepository, ICategoryRepository CategoryRepository, IItemRepository ItemRepository, IReoccuringItemRepository ReoccuringItemRepository) { BudgetRepo = BudgetRepository; CategoryRepo = CategoryRepository; ItemRepo = ItemRepository; ReoccuringItemRepo = ReoccuringItemRepository; }
public Validator(IBudgetRepository budgetRepository, IAuthenticationProvider authenticationProvider) { RuleFor(x => x.BudgetId).NotEmpty(); /* Check if user has access to budget */ var availableBudgets = budgetRepository.ListAvailableBudgets().Result; RuleFor(x => availableBudgets.Any(s => s.Id == x.BudgetId)) .NotEqual(false) .WithMessage("Requested budget does not exist."); }
public BudgetController( [NotNull] IBudgetRepository budgetRepository, [NotNull] UiContext uiContext, [NotNull] DemoFileHelper demoFileHelper, [NotNull] IBudgetBucketRepository bucketRepo) { if (budgetRepository == null) { throw new ArgumentNullException("budgetRepository"); } if (uiContext == null) { throw new ArgumentNullException("uiContext"); } if (demoFileHelper == null) { throw new ArgumentNullException("demoFileHelper"); } if (bucketRepo == null) { throw new ArgumentNullException("bucketRepo"); } this.demoFileHelper = demoFileHelper; this.bucketRepo = bucketRepo; this.budgetRepository = budgetRepository; this.questionBox = uiContext.UserPrompts.YesNoBox; this.messageBox = uiContext.UserPrompts.MessageBox; this.fileOpenDialogFactory = uiContext.UserPrompts.OpenFileFactory; this.fileSaveDialogFactory = uiContext.UserPrompts.SaveFileFactory; this.inputBox = uiContext.UserPrompts.InputBox; BudgetPieController = uiContext.BudgetPieController; Shown = false; MessengerInstance = uiContext.Messenger; MessengerInstance.Register<ApplicationStateRequestedMessage>(this, OnApplicationStateRequested); MessengerInstance.Register<ApplicationStateLoadedMessage>(this, OnApplicationStateLoaded); MessengerInstance.Register<ShellDialogResponseMessage>(this, OnPopUpResponseReceived); var budget = new BudgetModel(); CurrentBudget = new BudgetCurrencyContext(new BudgetCollection(new[] { budget }), budget); }
public ArpagonUow() { // Context CreateDbContext(); // Repos _CategorieRepo = new CategorieBudgetRepository(db); _BudgetRepo = new BudgetRepository(db); _CompteBanqueRepo = new CompteBanqueRepository(db); _BanqueRepo = new EFRepository<Banque>(db); _CompteCaisseRepo = new CompteCaisseRepository(db); _GroupeRepo = new GroupeRepository(db); _ModeleMouvementBudgetRepo = new ModeleMouvementBudgetRepository(db); _ModeleProvisionRepo = new ModeleProvisionRepository(db); _ModeleRepo = new ModeleRepository(db); _MouvementRepo = new MouvementBudgetRepository(db); _MoyenPaiementRepo = new MoyenPaiementRepository(db); _NoteRepo = new EFRepository<Note>(db); _OperationRepo = new OperationRepository(db); _FinancementRepo = new FinancementRepository(db); _FinancementBudgetRepo = new FinancementBudgetRepository(db); _ProvisionRepo = new ProvisionRepository(db); _TypeOperationRepo = new EFRepository<TypeOperation>(db); //_UserRepo = new UserRepository(db); _UtilisateurRepo = new UtilisateurRepository(db); _Chargement = new EFRepository<Chargement>(db); _OperationRawSG = new RawRepository<OperationRawSG>(db); _Contrat = new ContratRepository(db); _EcheanceContrat = new EcheanceContratRepository(db); _RapproEcheance = new RapproEcheanceRepository(db); _RapproRaw = new RapproRawRepository(db); _TraceLog = new TraceLogRepository(db); }
public BudgetApplicationService(IBudgetRepository repository, IUnitOfWork unitOfWork) : base(unitOfWork) { this._repository = repository; }
public void Dispose() { _repository = null; }
public BudgetService(IBudgetRepository budgetRepository, IBudgetAccountModelMapper budgetAccountModelMapper, IBudgetModelMapper budgetModelMapper) { _budgetRepository = budgetRepository; _budgetModelMapper = budgetModelMapper; _budgetAccountModelMapper = budgetAccountModelMapper; }
public ComptabiliteService( IBudgetRepository budgetRepository) { this.budgetRepository = budgetRepository; }