public WorkplaceController( IOpenIddictApplicationManager oidcAppManager, IWorkplaceCredentialsService workplaceCredentialsService, AutoMapperConfig autoMapperConfig) { _oidcAppManager = oidcAppManager; _workplaceCredentialsService = workplaceCredentialsService; _mapper = autoMapperConfig.CreateMapper(); }
public DepartmentController( IService <Department> departmentService, IEmployeeService employeeService, IWorkplaceCredentialsService workplaceCredentialsService, ITenantIdProvider tenantIdProvider, ILogger <DepartmentController> logger) { _tenantIdProvider = tenantIdProvider; _departmentService = departmentService; _employeeService = employeeService; _workplaceCredentialsService = workplaceCredentialsService; _logger = logger; }
public BranchOfficeController( IService <BranchOffice> branchOfficeService, ITimeService timeService, IWorkplaceCredentialsService workplaceCredentialsService, ITenantIdProvider tenantIdProvider, ILogger <BranchOfficeController> logger) { _timeService = timeService; _tenantIdProvider = tenantIdProvider; _branchOfficeService = branchOfficeService; _workplaceCredentialsService = workplaceCredentialsService; _logger = logger; }
public void Setup() { LogHelper.ConfigureConsoleLogger(); StaticStartup.Startup(); _newId = Guid.NewGuid(); _tenantId = Guid.NewGuid(); _branchOfficeService = Substitute.For <IService <BranchOffice> >(); _tenantIdProvider = Substitute.For <ITenantIdProvider>(); _logger = Substitute.For <ILogger <BranchOfficeController> >(); _timeService = Substitute.For <ITimeService>(); _credentialsService = Substitute.For <IWorkplaceCredentialsService>(); _tenantIdProvider.GetTenantId().Returns(_tenantId); _timeService.CheckTimeZoneId(Arg.Any <string>()).Returns(true); }