public VerifyOrganizationCommandHandler(
     IOrgManagerDbContext context,
     IDomainEntityToDbEntityMapper <Employee, EmployeeEntity> employeeDomainToDbEntityMapper,
     IDomainEntityToDbEntityMapper <PaidTimeOffPolicy, PaidTimeOffPolicyEntity> ptoPolicyDomainToDbEntityMapper,
     IOrganizationVerifier organizationVerifier)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
     this.employeeDomainToDbEntityMapper  = employeeDomainToDbEntityMapper ?? throw new ArgumentNullException(nameof(employeeDomainToDbEntityMapper));
     this.organizationVerifier            = organizationVerifier ?? throw new ArgumentNullException(nameof(organizationVerifier));
     this.ptoPolicyDomainToDbEntityMapper = ptoPolicyDomainToDbEntityMapper ?? throw new ArgumentNullException(nameof(ptoPolicyDomainToDbEntityMapper));
 }
 public RegisterOrUpdateEmployeeCommandHandler(
     IOrgManagerDbContext context,
     IViewModelToDomainEntityMapper <RegisterOrUpdateEmployeeCommand, Employee> employeeVmToDomainEntityMapper,
     IDomainEntityToDbEntityMapper <Employee, EmployeeEntity> employeeDomainToDbEntityMapper,
     IDomainEntityToDbEntityMapper <PaidTimeOffPolicy, PaidTimeOffPolicyEntity> ptoPolicyDomainToDbEntityMapper,
     IDateTimeService dateTimeService)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
     this.employeeVmToDomainEntityMapper  = employeeVmToDomainEntityMapper ?? throw new ArgumentNullException(nameof(employeeVmToDomainEntityMapper));
     this.employeeDomainToDbEntityMapper  = employeeDomainToDbEntityMapper ?? throw new ArgumentNullException(nameof(employeeDomainToDbEntityMapper));
     this.ptoPolicyDomainToDbEntityMapper = ptoPolicyDomainToDbEntityMapper ?? throw new ArgumentNullException(nameof(ptoPolicyDomainToDbEntityMapper));
     this.dateTimeService = dateTimeService ?? throw new ArgumentNullException(nameof(dateTimeService));
 }
Esempio n. 3
0
 public InitialDataSeeder(IOrgManagerDbContext context, ILogger logger)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
     this.logger  = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Esempio n. 4
0
 public SeedSampleDataCommandHandler(IOrgManagerDbContext context, ILogger <SeedSampleDataCommandHandler> logger)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
     this.logger  = logger ?? throw new ArgumentNullException(nameof(logger));
 }