protected BaseServiceComponentController(IContextManager contextManager,
                                          IServiceComponentService serviceComponentService,
                                          IServiceFunctionService serviceFunctionService,
                                          IServiceDeliveryOrganisationTypeRefDataService serviceDeliveryOrganisationTypeRefDataService,
                                          IServiceDeliveryUnitTypeRefDataService serviceDeliveryUnitTypeRefDataService,
                                          IResolverGroupTypeRefDataService resolverGroupTypeRefDataService,
                                          IParameterService parameterService,
                                          IAppUserContext appUserContext,
                                          IServiceComponentHelper serviceComponentHelper)
     : base(contextManager)
 {
     _contextManager          = contextManager;
     _serviceComponentService = serviceComponentService;
     _serviceFunctionService  = serviceFunctionService;
     _serviceDeliveryOrganisationTypeRefDataService = serviceDeliveryOrganisationTypeRefDataService;
     _serviceDeliveryUnitTypeRefDataService         = serviceDeliveryUnitTypeRefDataService;
     _resolverGroupTypeRefDataService = resolverGroupTypeRefDataService;
     _parameterService       = parameterService;
     _appUserContext         = appUserContext;
     _serviceComponentHelper = serviceComponentHelper;
 }
 public void Initialize()
 {
     _target = new ServiceComponentHelper();
 }
예제 #3
0
        public ServiceComponentController(IContextManager contextManager,
                                          IAppUserContext appUserContext,
                                          IServiceComponentService serviceComponentService,
                                          IServiceFunctionService serviceFunctionService,
                                          IServiceDeliveryOrganisationTypeRefDataService serviceDeliveryOrganisationTypeRefDataService,
                                          IServiceDeliveryUnitTypeRefDataService serviceDeliveryUnitTypeRefDataService,
                                          IResolverGroupTypeRefDataService resolverGroupTypeRefDataService,
                                          IParameterService parameterService,
                                          IServiceComponentHelper serviceComponentHelper) : base(contextManager,
                                                                                                 serviceComponentService,
                                                                                                 serviceFunctionService,
                                                                                                 serviceDeliveryOrganisationTypeRefDataService,
                                                                                                 serviceDeliveryUnitTypeRefDataService,
                                                                                                 resolverGroupTypeRefDataService,
                                                                                                 parameterService,
                                                                                                 appUserContext,
                                                                                                 serviceComponentHelper)
        {
            if (contextManager == null)
            {
                throw new ArgumentNullException(nameof(contextManager));
            }

            if (appUserContext == null)
            {
                throw new ArgumentNullException(nameof(appUserContext));
            }

            if (serviceComponentService == null)
            {
                throw new ArgumentNullException(nameof(serviceComponentService));
            }

            if (serviceFunctionService == null)
            {
                throw new ArgumentNullException(nameof(serviceFunctionService));
            }

            if (serviceDeliveryOrganisationTypeRefDataService == null)
            {
                throw new ArgumentNullException(nameof(serviceDeliveryOrganisationTypeRefDataService));
            }

            if (serviceDeliveryUnitTypeRefDataService == null)
            {
                throw new ArgumentNullException(nameof(serviceDeliveryUnitTypeRefDataService));
            }

            if (resolverGroupTypeRefDataService == null)
            {
                throw new ArgumentNullException(nameof(resolverGroupTypeRefDataService));
            }

            if (parameterService == null)
            {
                throw new ArgumentNullException(nameof(parameterService));
            }

            if (serviceComponentHelper == null)
            {
                throw new ArgumentNullException(nameof(serviceComponentHelper));
            }

            _contextManager          = contextManager;
            _appUserContext          = appUserContext;
            _serviceComponentService = serviceComponentService;
            _serviceFunctionService  = serviceFunctionService;
            _serviceDeliveryOrganisationTypeRefDataService = serviceDeliveryOrganisationTypeRefDataService;
            _serviceDeliveryUnitTypeRefDataService         = serviceDeliveryUnitTypeRefDataService;
            _resolverGroupTypeRefDataService = resolverGroupTypeRefDataService;
            _parameterService       = parameterService;
            _serviceComponentHelper = serviceComponentHelper;
        }