Example #1
0
 public PolicyServiceMock(
     ApiServiceArgs <TLoggerCategory> args,
     IMasterDataService masterDataSvc,
     IClientPolicyService clientPolicySvc)
     : base(args, masterDataSvc, clientPolicySvc)
 {
 }
Example #2
0
 public LinCApiServices(IUserService userService, IAuthService authService, IMasterDataService masterDataService)
 {
     UserService       = userService;
     AuthService       = authService;
     MasterDataService = masterDataService;
     // ... etc.
 }
Example #3
0
 public ManualDocumentMatchingCommandHandler(
     ILogger <ManualDocumentMatchingCommandHandler> logger,
     IIdentityService identityService,
     IMasterDataService masterDataService,
     IUnitOfWork unitOfWork,
     IManualDocumentMatchingRepository manualDocumentMatchingRepository,
     IManualDocumentMatchingQueries manualDocumentMatchingQueries,
     ITransactionDocumentQueries transactionDocumentQueries,
     ITransactionDocumentRepository transactionDocumentRepository,
     ISystemDateTimeService systemDateTimeService,
     IForeignExchangeRateService foreignExchangeRateService,
     IProcessMessageService processMessageService,
     IMapper mapper,
     IAuthorizationService authorizationService)
 {
     _manualDocumentMatchingRepository = manualDocumentMatchingRepository ?? throw new ArgumentNullException(nameof(manualDocumentMatchingRepository));
     _manualDocumentMatchingQueries    = manualDocumentMatchingQueries ?? throw new ArgumentNullException(nameof(manualDocumentMatchingQueries));
     _transactionDocumentQueries       = transactionDocumentQueries ?? throw new ArgumentNullException(nameof(transactionDocumentQueries));
     _transactionDocumentRepository    = transactionDocumentRepository ?? throw new ArgumentNullException(nameof(transactionDocumentRepository));
     _unitOfWork                 = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _logger                     = logger ?? throw new ArgumentNullException(nameof(logger));
     _identityService            = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _mapper                     = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _systemDateTimeService      = systemDateTimeService ?? throw new ArgumentNullException(nameof(systemDateTimeService));
     _masterDataService          = masterDataService;
     _foreignExchangeRateService = foreignExchangeRateService;
     _processMessageService      = processMessageService ?? throw new ArgumentNullException(nameof(processMessageService));
     _authorizationService       = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService));
 }
 public CustomerController(IUserService userService,
                           IMasterDataService masterDataService)
 {
     base._masterDataService = masterDataService;
     _masterDataService      = masterDataService;
     _userService            = userService;
 }
 public PhysicalContractCommandsHandler(
     ILogger <PhysicalContractCommandsHandler> logger,
     IUnitOfWork unitOfWork,
     ITradeRepository tradeRepository,
     ISectionRepository sectionRepository,
     ICostRepository costRepository,
     IIdentityService identityService,
     IFreezeRepository freezeRepository,
     ISystemDateTimeService systemDateTimeService,
     IMapper mapper,
     IAuthorizationService authorizationService,
     IProcessMessageService processMessageService,
     IMasterDataService masterDataService,
     IUserService userService,
     ISectionQueries sectionQueries)
 {
     _unitOfWork            = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _tradeRepository       = tradeRepository ?? throw new ArgumentNullException(nameof(tradeRepository));
     _sectionRepository     = sectionRepository ?? throw new ArgumentNullException(nameof(sectionRepository));
     _costRepository        = costRepository ?? throw new ArgumentNullException(nameof(costRepository));
     _logger                = logger ?? throw new ArgumentNullException(nameof(logger));
     _mapper                = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _identityService       = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _systemDateTimeService = systemDateTimeService ?? throw new ArgumentNullException(nameof(systemDateTimeService));
     _authorizationService  = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService));
     _freezeRepository      = freezeRepository ?? throw new ArgumentNullException(nameof(freezeRepository));
     _processMessageService = processMessageService ?? throw new ArgumentNullException(nameof(processMessageService));
     _masterDataService     = masterDataService ?? throw new ArgumentNullException(nameof(masterDataService));
     _userService           = userService ?? throw new ArgumentNullException(nameof(userService));
     _sectionQueries        = sectionQueries ?? throw new ArgumentNullException(nameof(sectionQueries));
 }
Example #6
0
 public AccountingCsvImporter(IMasterDataService masterDataService, IAccountingDocumentQueries accountingDocumentQueries, string company, IMapper mapper)
 {
     _masterDataService         = masterDataService;
     _accountingDocumentQueries = accountingDocumentQueries;
     _mapper      = mapper;
     this.company = company;
 }
Example #7
0
 public MasterDataController(IMasterDataService masterDataService, ILanguageService languageService,
                             IFrameworkService frameworkService)
 {
     _masterDataService = masterDataService;
     _languageService   = languageService;
     _frameworkService  = frameworkService;
 }
 public AccountController(ICustomerService customerService,
                          IMasterDataService masterDataService)
 {
     base._masterDataService = masterDataService;
     _customerService        = customerService;
     _masterDataService      = masterDataService;
 }
Example #9
0
 public WorkingProcessController(IWorkingProcessService workingProcessService
                                 , ITableService tableService
                                 , ITableConfigService tableConfigService
                                 , IMasterDataService masterDataService
                                 , IOrganizationService organizationService
                                 , IStaffService staffService
                                 , ILocalizationService localizationService
                                 , ITableColumnService tableColumnService
                                 , IWorkingdayService workingdayService
                                 , IPipelineService pipelineService)
 {
     this._workingProcessService = workingProcessService;
     this._tableService          = tableService;
     this._tableConfigService    = tableConfigService;
     this._masterDataService     = masterDataService;
     this._organizationService   = organizationService;
     this._localizationService   = localizationService;
     this._staffService          = staffService;
     this._workingdayService     = workingdayService;
     this._tableColumnService    = tableColumnService;
     this._pipelineService       = pipelineService;
     this._languageId            = CurrentUser.LanguageId;
     this._userId = CurrentUser.UserId;
     this._roleId = 1;
 }
 public CreateAccountingDocumentCommandHandler(
     ILogger <CreateAccountingDocumentCommandHandler> logger,
     IUnitOfWork unitOfWork,
     IIdentityService identityService,
     IMapper mapper,
     IAuthorizationService authorizationService,
     IAccountingDocumentQueries accountingQueries,
     IMasterDataService masterDataService,
     ISystemDateTimeService systemDateTimeService,
     IProcessMessageService processMessageService,
     IAccountingDocumentRepository accountingDocumentRepository,
     IInvoicingRepository documentMatchingRepository,
     IForeignExchangeRateService foreignExchangeRateService)
 {
     _unitOfWork                   = unitOfWork;
     _logger                       = logger;
     _mapper                       = mapper;
     _identityService              = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _authorizationService         = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService));
     _systemDateTimeService        = systemDateTimeService ?? throw new ArgumentNullException(nameof(systemDateTimeService));
     _processMessageService        = processMessageService ?? throw new ArgumentNullException(nameof(processMessageService));
     _accountingQueries            = accountingQueries;
     _masterDataService            = masterDataService;
     _accountingDocumentRepository = accountingDocumentRepository;
     _invoicingRepository          = documentMatchingRepository;
     _foreignExchangeRateService   = foreignExchangeRateService;
 }
Example #11
0
 public ClientPolicyServiceEF(
     ApiServiceArgsEF <TLoggerCategory, InsuranceDbContext> args,
     IMasterDataService masterDataSvc,
     IClientService clientSvc)
     : base(args, masterDataSvc, clientSvc)
 {
 }
 public PolicyCoverageServiceEF(
     ApiServiceArgsEF <TLoggerCategory, InsuranceDbContext> args,
     IMasterDataService masterDataSvc,
     IPolicyService policyService,
     IClientPolicyService clientPolicySvc)
     : base(args, masterDataSvc, policyService, clientPolicySvc)
 {
 }
Example #13
0
 public AccountingDocumentsController(IMediator mediator, IIdentityService identityService, IGridService gridQueries, IAccountingDocumentQueries accountingDocumentQueries, IMasterDataService masterDataService, IMapper mapper)
 {
     _mediator                  = mediator;
     _identityService           = identityService;
     _accountingDocumentQueries = accountingDocumentQueries;
     _mapper            = mapper;
     _masterDataService = masterDataService ?? throw new ArgumentNullException(nameof(masterDataService));
 }
Example #14
0
 public ClientPolicyServiceBase(
     ApiServiceArgsEF <TLoggerCategory, TDbContext> args,
     IMasterDataService masterDataSvc,
     IClientService clientSvc)
     : base(args)
 {
     _masterDataSvc = masterDataSvc;
     _clientSvc     = clientSvc;
 }
Example #15
0
 public SalaryElementController(ISalaryElementService salaryElementService, IMasterDataService masterDataService, ITableColumnService tableColumnService, ITableConfigService tableConfigService, ILocalizationService localizationService)
 {
     _tableConfigService   = tableConfigService;
     _salaryElementService = salaryElementService;
     _masterDataService    = masterDataService;
     _tableColumnService   = tableColumnService;
     _localizationService  = localizationService;
     _languageId           = CurrentUser.LanguageId;
 }
Example #16
0
 public PolicyServiceBase(
     ApiServiceArgs <TLoggerCategory> args,
     IMasterDataService masterDataSvc,
     IClientPolicyService clientPolicySvc)
     : base(args)
 {
     _masterDataSvc   = masterDataSvc;
     _clientPolicySvc = clientPolicySvc;
 }
Example #17
0
 public CompanyController(IUserService userService,
                          IMasterDataService masterDataService,
                          IWebHostEnvironment hostEnvironment)
 {
     base._masterDataService = masterDataService;
     _userService            = userService;
     _masterDataService      = masterDataService;
     webHostEnvironment      = hostEnvironment;
 }
Example #18
0
 public CommonController(IConfiguration config, ILogger <CommonController> logger, IMasterDataService masterDataService, IOptions <JwtAuthentication> jwtAuthentication, IHttpContextAccessor httpContextAccessor)
 {
     _config              = config;
     _logger              = logger;
     _masterDataService   = masterDataService;
     _jwtAuthentication   = jwtAuthentication ?? throw new ArgumentNullException(nameof(jwtAuthentication));
     _httpContextAccessor = httpContextAccessor;
     _helper              = new AuthenticationHelper();
 }
Example #19
0
 public PipelineController(IPipelineService pipelineService, IStaffService staffService, IMasterDataService masterDataService, IMenuService menuService, ILocalizationService localizationService)
 {
     _pipelineService     = pipelineService;
     _staffService        = staffService;
     _localizationService = localizationService;
     _masterDataService   = masterDataService;
     _menuService         = menuService;
     _languageId          = CurrentUser.LanguageId;
 }
 public ReportContentUserControlViewModel(IMasterDataService masterData, DelegateCommand <ReportContentData> command)
 {
     this.masterData            = masterData;
     this.command               = command;
     ReportCommand              = new DelegateCommand(DoReport, CanReport);
     ShowCommand                = new DelegateCommand(Reset, CanShow);
     command.CanExecuteChanged += (s, e) => ShowCommand.RaiseCanExecuteChanged();
     PropertyChanged           += (s, e) => ReportCommand.RaiseCanExecuteChanged();
 }
 public HomeController(IUserService userService,
                       IWebHostEnvironment hostEnvironment,
                       IMasterDataService masterDataService)
 {
     base._masterDataService = masterDataService;
     _userService            = userService;
     webHostEnvironment      = hostEnvironment;
     _masterDataService      = masterDataService;
 }
Example #22
0
 public ConfigInsuranceDetailController(IConfigInsuranceDetailService configInsuranceDetailService, IMasterDataService masterDataService, ITableColumnService tableColumnService, ITableConfigService tableConfigService, ILocalizationService localizationService, IOrganizationService organizationService)
 {
     _tableConfigService           = tableConfigService;
     _configInsuranceDetailService = configInsuranceDetailService;
     _masterDataService            = masterDataService;
     _tableColumnService           = tableColumnService;
     _localizationService          = localizationService;
     _organizationService          = organizationService;
     _languageId = CurrentUser.LanguageId;
 }
Example #23
0
 public SalaryController(ITableColumnService tableColumnService, IMasterDataService masterDataService, ITableConfigService tableConfigService, ISalaryService salaryService)
 {
     _masterDataService  = masterDataService;
     _tableColumnService = tableColumnService;
     _tableConfigService = tableConfigService;
     _salaryService      = salaryService;
     this._languageId    = CurrentUser.LanguageId;
     this._userId        = CurrentUser.UserId;
     this._roleId        = CurrentUser.RoleId;
 }
Example #24
0
 public FreezesController(
     IMediator mediator,
     IFreezeQueries freezeQueries,
     IIdentityService identityService,
     IMasterDataService masterDataService)
 {
     _mediator          = mediator;
     _freezeQueries     = freezeQueries;
     _identityService   = identityService;
     _masterDataService = masterDataService;
 }
Example #25
0
 public WorkingdaySupplementConfigurationController(ILocalizationService localizationService, IMasterDataService masterDataService, IRoleService roleService, ITableColumnService tableColumnService, ITableConfigService tableConfigService, IWorkingDaySupplementConfigurationService workingDaySupplementConfigurationService, IWorkingDaySupplementConfigurationExceptionService workingDaySupplementConfigurationExceptionService)
 {
     _roleService         = roleService;
     _masterDataService   = masterDataService;
     _localizationService = localizationService;
     _tableColumnService  = tableColumnService;
     _tableConfigService  = tableConfigService;
     _workingDaySupplementConfigurationService          = workingDaySupplementConfigurationService;
     _workingDaySupplementConfigurationExceptionService = workingDaySupplementConfigurationExceptionService;
     _languageId = CurrentUser.LanguageId;
 }
 public PolicyCoverageServiceBase(
     ApiServiceArgsEF <TLoggerCategory, TDbContext> args,
     IMasterDataService masterDataSvc,
     IPolicyService policyService,
     IClientPolicyService clientPolicySvc)
     : base(args)
 {
     _masterDataSvc   = masterDataSvc;
     _policyService   = policyService;
     _clientPolicySvc = clientPolicySvc;
 }
Example #27
0
 public MasterDataController(IMasterDataService masterDataService, ITableService tableService, ITableConfigService tableConfigService, ILocalizationService localizationService, ITableColumnService tableColumnService)
 {
     this._masterDataService  = masterDataService;
     this._tableService       = tableService;
     this._tableConfigService = tableConfigService;
     _tableColumnService      = tableColumnService;
     this._languageId         = CurrentUser.LanguageId;
     _localizationService     = localizationService;
     _userId      = CurrentUser.UserId;
     this._roleId = 1;
 }
Example #28
0
 public ConfigInsuranceController(IConfigInsuranceService configInsuranceService, IConfigInsuranceDetailService configInsuranceDetailService, ITableConfigService tableConfigService, ITableColumnService tableColumnService, IMasterDataService masterDataService, IPersonalIncomeTaxService personalIncomeTaxService)
 {
     _configInsuranceService       = configInsuranceService;
     _configInsuranceDetailService = configInsuranceDetailService;
     _tableConfigService           = tableConfigService;
     _tableColumnService           = tableColumnService;
     _masterDataService            = masterDataService;
     _personalIncomeTaxService     = personalIncomeTaxService;
     this._languageId = CurrentUser.LanguageId;
     this._userId     = CurrentUser.UserId;
     this._roleId     = CurrentUser.RoleId;
 }
Example #29
0
 public SearchController(
     IMasterDataService masterDataService,
     IOrganizationService organizationService,
     ITableConfigService tableConfigService,
     IStaffService staffService
     )
 {
     _masterDataService   = masterDataService;
     _organizationService = organizationService;
     _tableConfigService  = tableConfigService;
     _staffService        = staffService;
 }
Example #30
0
        public MasterDataTest()
        {
            var services = new ServiceCollection();

            services.AddTransient <IMasterDataService, MasterDataService>();
            services.AddTransient <IMasterDataRepository, MasterDataRepository>();
            //services.AddDbContext<HCPatientContext>(option => { option.UseSqlServer(Configuration.GetConnectionString("HCPatient"), b => b.MigrationsAssembly("HC.Patient.Web")); });
            services.AddDbContext <HCPatientContext>(option => { option.UseSqlServer("Server=108.168.203.227,7007;Database=HC_Patient;Trusted_Connection=True;MultipleActiveResultSets=true;Integrated Security=false;User ID=HC_Patient;Password=HC_Patient;"); });

            var provider = services.BuildServiceProvider();

            _masterDataService = provider.GetService <IMasterDataService>();
        }