public ServiceDeliveryUnitTypeRefDataService(IRepository <ServiceDeliveryUnitTypeRefData> serviceDeliveryUnitTypeRefDataRepository,
                                                     IRepository <Resolver> resolverRepository,
                                                     IParameterService parameterService,
                                                     IUnitOfWork unitOfWork)
        {
            if (serviceDeliveryUnitTypeRefDataRepository == null)
            {
                throw new ArgumentNullException(nameof(serviceDeliveryUnitTypeRefDataRepository));
            }

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

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

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

            _serviceDeliveryUnitTypeRefDataRepository = serviceDeliveryUnitTypeRefDataRepository;
            _resolverRepository = resolverRepository;
            _parameterService   = parameterService;
            _unitOfWork         = unitOfWork;
        }
Exemple #2
0
 public DownloadRequestReleaseService(IContext context, IParameterService parameterService,
                                      IReleaseService releaseService) : base(context)
 {
     Dbset             = context.Set <DownloadRequestRelease>();
     _parameterService = parameterService;
     _releaseService   = releaseService;
 }
Exemple #3
0
        public HomeController(IAppUserContext appUserContext,
                              ICacheManager cacheManager,
                              IContextManager contextManager,
                              IUserManager userManager,
                              IParameterService parameterService)
        {
            if (parameterService == null)
            {
                throw new ArgumentNullException();
            }

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

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

            if (contextManager == null)
            {
                throw new ArgumentNullException(nameof(contextManager));
            }
            if (userManager == null)
            {
                throw new ArgumentNullException(nameof(userManager));
            }
            _appUserContext   = appUserContext;
            _cacheManager     = cacheManager;
            _contextManager   = contextManager;
            _userManager      = userManager;
            _parameterService = parameterService;
        }
        public void GetConversionType_GivenArgs_ReturnConversionType(params string[] args)
        {
            this._parameterService = new ParameterService(args);
            var conversionType = this._parameterService.GetConversioinType();

            Assert.AreEqual(conversionType, ConversionType.Directory);
        }
 public CreateQueryCommand(ServiceHelper serviceHelper, IChannelQueryRepository queryRepository, IParameterService parameterService, IUserRepository userRepository)
 {
     _serviceHelper    = serviceHelper;
     _queryRepository  = queryRepository;
     _parameterService = parameterService;
     _userRepository   = userRepository;
 }
Exemple #6
0
        public void Initialize()
        {
            _mockUnitOfWork = new Mock <IUnitOfWork>();

            _mockCacheManager = new Mock <ICacheManager>();

            _mockUserIdentity = new Mock <IUserIdentity>();
            _mockUserIdentity.Setup(s => s.Name).Returns(UserName);

            _parameters = new List <Parameter>
            {
                UnitTestHelper.GenerateRandomData <Parameter>(),
                UnitTestHelper.GenerateRandomData <Parameter>(),
                UnitTestHelper.GenerateRandomData <Parameter>(x => x.Id = ExistingId),
                UnitTestHelper.GenerateRandomData <Parameter>(x =>
                {
                    x.Name  = ExistingParameterName;
                    x.Value = ExistingParameterValue;
                }),
                UnitTestHelper.GenerateRandomData <Parameter>()
            };

            _mockParameterRepository = MockRepositoryHelper.Create(_parameters,
                                                                   (entity, id) => entity.Id == (int)id,
                                                                   (p1, p2) => p1.Id == p2.Id);

            _parameterService = new ParameterService(_mockParameterRepository.Object,
                                                     _mockUnitOfWork.Object,
                                                     _mockUserIdentity.Object,
                                                     _mockCacheManager.Object);
        }
Exemple #7
0
 /// <summary>
 /// 建構子
 /// </summary>
 /// <param name="shippingOrderRepository">配送訂單儲存庫</param>
 /// <param name="parameterService">參數表服務</param>
 public ShippingOrderService(
     IShippingOrderRepository shippingOrderRepository,
     IParameterService parameterService)
 {
     this.ShippingOrderRepository = shippingOrderRepository;
     this.ParameterService        = parameterService;
 }
Exemple #8
0
 public LoginController(IUserService userService, ICompanyService companyService, IUserTokenService userTokenService, IParameterService parameterService)
 {
     _userService      = userService;
     _companyService   = companyService;
     _userTokenService = userTokenService;
     _parameterService = parameterService;
 }
Exemple #9
0
        public ProvisioningService(IParameterService parameterService,
                                   IRepository <ProvisionedSiteCollection> provisionedSiteCollectionRepository,
                                   IRepository <ProvisionedSite> provisionedSiteRepository,
                                   IUserIdentity userIdentity,
                                   IUnitOfWork unitOfWork)
            : base(parameterService)
        {
            if (parameterService == null)
            {
                throw new ArgumentNullException(nameof(parameterService));
            }
            if (provisionedSiteCollectionRepository == null)
            {
                throw new ArgumentNullException(nameof(provisionedSiteCollectionRepository));
            }
            if (provisionedSiteRepository == null)
            {
                throw new ArgumentNullException(nameof(provisionedSiteRepository));
            }
            if (userIdentity == null)
            {
                throw new ArgumentNullException(nameof(userIdentity));
            }
            if (unitOfWork == null)
            {
                throw new ArgumentNullException(nameof(unitOfWork));
            }

            _parameterService = parameterService;
            _provisionedSiteCollectionRepository = provisionedSiteCollectionRepository;
            _provisionedSiteRepository           = provisionedSiteRepository;
            _userIdentity = userIdentity;
            _unitOfWork   = unitOfWork;
        }
Exemple #10
0
 public ProcessService(ISession session)
     : base(session)
 {
     _processRepository   = new ProcessRepository(session);
     _parameterService    = new ParameterService(session);
     _processMacroService = new ProcessMacroService(session);
 }
        public void GetOutputParameter_GivenArgs_ReturnOutputParameter(params string[] args)
        {
            this._parameterService = new ParameterService(args);
            var param = this._parameterService.GetOutput();

            Assert.AreEqual(param.EncodingInfo.Name, args.Single(p => p.StartsWith("/oe:")).Replace("/oe:", ""));
            Assert.AreEqual(param.Directories.First(), args.Single(p => p.StartsWith("/o:")).Replace("/o:", ""));
        }
Exemple #12
0
 public PaymentBusiness(
     IPaymentService paymentStrategy
     , IParameterService parameterService
     )
 {
     _paymentService   = paymentStrategy;
     _parameterService = parameterService;
 }
 public ChooseParameterHandler(IBotService bot, IUserRepository userRepository, ServiceHelper serviceHelper, IParameterService parameterService, IChannelParameterRepository cpr)
 {
     _bot              = bot;
     _userRepository   = userRepository;
     _serviceHelper    = serviceHelper;
     _parameterService = parameterService;
     _cpr              = cpr;
 }
 public WorkLoadService(IJsonService jsonService, IDemandService demandService, IOperatorService operatorService, IJobService jobService, IPenaltyService penaltyService, IParameterService parameterService)
 {
     JsonService      = jsonService;
     DemandService    = demandService;
     OperatorService  = operatorService;
     JobService       = jobService;
     ParameterService = parameterService;
 }
Exemple #15
0
        public void Init()
        {
            parameterRepository = Substitute.For <IParameterRepository>();
            var mapper = new MapperConfiguration(x => x.AddProfile(new MappingProfile())).CreateMapper();

            log = Substitute.For <ILog>();
            parameterService = new ParameterService(parameterRepository, mapper, log);
        }
 //constructor DI
 public HomeController(ITrainingService <Training> trainingService,
                       IPhotoService <TrainingPhoto> trainingPhotoService,
                       IParameterService <TrainingPlace> parameterService)
 {
     _trainingService      = trainingService;
     _trainingPhotoService = trainingPhotoService;
     _parameterService     = parameterService;
 }
Exemple #17
0
 //constructor DI
 public TrainingApiController(
     ITrainingService <Training> trainingService,
     IPhotoService <TrainingPhoto> trainingPhotoService,
     IParameterService <TrainingPlace> trainingPlaceService)
 {
     _trainingService      = trainingService;
     _trainingPhotoService = trainingPhotoService;
     _trainingPlaceService = trainingPlaceService;
 }
        protected SharePointOnline(IParameterService parameterService)
        {
            if (parameterService == null)
            {
                throw new ArgumentNullException(nameof(parameterService));
            }

            _parameterService = parameterService;
        }
Exemple #19
0
        public void Init()
        {
            _mockSetting = new Mock <ISettings>();
            _service     = new ParameterService(_mockSetting.Object);

            _command           = new CommandMethod(typeof(MethodServiceTests).GetMethod("FakeMethod"));
            _nonCommand        = new CommandMethod(typeof(MethodServiceTests).GetMethod("FakeMethodNonCommand"));
            _collectionCommand = new CommandMethod(typeof(MethodServiceTests).GetMethod("FakeMethodWithCollections"));
        }
Exemple #20
0
 public ConfigureQueryPageEx(IConfigureQueryPageView view,
                             IWizardRunnerContext context,
                             SqlWizardOptions options,
                             IDBSchemaProviderEx dbSchemaProvider,
                             IParameterService parameterService,
                             ICustomQueryValidator customQueryValidator)
     : base(view, context, options, dbSchemaProvider, parameterService, customQueryValidator)
 {
     schemaProvider = dbSchemaProvider;
 }
 public CreditAgricoleImportFileService(
     IParameterService parameterService,
     IAccountStatementImportFileService asifService,
     ReferentialService referentialService
     )
 {
     _parameterService   = parameterService;
     _asifService        = asifService;
     _referentialService = referentialService;
 }
Exemple #22
0
 public CommandService(IParameterService parameterService = null,
                       IMethodService methodService       = null,
                       IConsoleService consoleService     = null,
                       ISettings settings = null)
 {
     _parameterService = parameterService ?? new ParameterService();
     _methodService    = methodService ?? new MethodService();
     _consoleService   = consoleService ?? new ConsoleService();
     _settings         = settings ?? new Settings();
 }
 public ProductParameterController(IProductParameterService productParameterService, IParameterService parameterService,
     IParameterValueService parameterValueService, IProductService productService, ICategoryService categoryService, IWorkContext workContext)
 {
     _productParameterService = productParameterService;
     _parameterService = parameterService;
     _parameterValueService = parameterValueService;
     _productService = productService;
     _categoryService = categoryService;
     _workContext = workContext;
 }
 public ProductParameterController(IProductParameterService productParameterService, IParameterService parameterService,
                                   IParameterValueService parameterValueService, IProductService productService, ICategoryService categoryService, IWorkContext workContext)
 {
     _productParameterService = productParameterService;
     _parameterService        = parameterService;
     _parameterValueService   = parameterValueService;
     _productService          = productService;
     _categoryService         = categoryService;
     _workContext             = workContext;
 }
        public ProfileSelectorViewModel(IEventAggregator eventAggregator, IAddonService addonService,
                                        IProfileService profileService, IGameService launcherService, IParameterService parameterService)
        {
            _eventAggregator = eventAggregator;
            _eventAggregator.Subscribe(this);

            _addonService     = addonService;
            _profileService   = profileService;
            _launcherService  = launcherService;
            _parameterService = parameterService;
        }
 public ArrangementController(
     CombinedLogger <ArrangementController> logger,
     ICommonService common,
     ITransformalizeParametersModifier modifier,
     IParameterService parameterService
     )
 {
     _logger           = logger;
     _commonService    = common;
     _modifier         = modifier;
     _parameterService = parameterService;
 }
Exemple #27
0
 public NoPreviewQueryBuilderView(IQueryBuilderViewModel viewModel, IWin32Window owner,
                                  UserLookAndFeel lookAndFeel, IParameterService parameterService, IServiceProvider propertyGridServices,
                                  bool noCustomSql, bool light, IDisplayNameProvider displayNameProvider, bool noDiagram, bool legacyExpressionEditor,
                                  IExceptionHandler loaderExceptionHandler, IRepositoryItemsProvider repositoryItemsProvider)
     : base(viewModel, owner, lookAndFeel, parameterService, propertyGridServices, noCustomSql, light, displayNameProvider,
            noDiagram, legacyExpressionEditor, loaderExceptionHandler, repositoryItemsProvider)
 {
     this.layoutItemFilterButton.OptionsTableLayoutItem.ColumnIndex     = 0;
     this.layoutItemParametersButton.OptionsTableLayoutItem.ColumnIndex = 1;
     this.layoutItemPreviewButton.OptionsTableLayoutItem.ColumnIndex    = 2;
     this.layoutControl1.HideItem(this.layoutItemPreviewButton);
 }
Exemple #28
0
 public AccountController(
     UserManager <AspNetUser> userManager,
     SignInManager <AspNetUser> signInManager,
     EIMDBContext context,
     IParameterService parameterService,
     ILogger <AccountController> logger)
 {
     _userManager      = userManager;
     _signInManager    = signInManager;
     _context          = context;
     _parameterService = parameterService;
     _logger           = logger;
 }
Exemple #29
0
        public SettingsViewModel(IEventAggregator eventAggregator, IDialogCoordinator dialogCoordinator, IFileAccessor fileAccessor, ISettingsService settingsService,
                                 IAddonService addonService, IParameterService parameterService)
        {
            _eventAggregator = eventAggregator;
            _eventAggregator.Subscribe(this);
            _dialogCoordinator = dialogCoordinator;
            _fileAccessor      = fileAccessor;
            _settingsService   = settingsService;
            _addonService      = addonService;
            _parameterService  = parameterService;

            Load();
        }
Exemple #30
0
        public GameService(IProcessAccessor processAccessor, IClipboardAccessor clipboardAccessor, ILogger logger, ISettingsService settingsService,
                           IAddonService addonService, IParameterService parameterService, ISecurityService securityService) : base(logger)
        {
            _processAccessor   = processAccessor;
            _clipboardAccessor = clipboardAccessor;

            _settingsService  = settingsService;
            _addonService     = addonService;
            _parameterService = parameterService;
            _securityService  = securityService;

            LaunchSettings = new LaunchSettings();
        }
Exemple #31
0
        public AdministrationController(IParameterService parameterService,
                                        ICustomerService customerService,
                                        IContributorService contributorService,
                                        IAssetService assetService,
                                        IRegionTypeRefDataService regionTypeRefDataService,
                                        IContextManager contextManager,
                                        ApplicationUserManager userManager,
                                        ApplicationRoleManager roleManager)
        {
            if (parameterService == null)
            {
                throw new ArgumentNullException(nameof(parameterService));
            }
            if (customerService == null)
            {
                throw new ArgumentNullException(nameof(customerService));
            }
            if (contributorService == null)
            {
                throw new ArgumentNullException(nameof(contributorService));
            }
            if (assetService == null)
            {
                throw new ArgumentNullException(nameof(assetService));
            }
            if (regionTypeRefDataService == null)
            {
                throw new ArgumentNullException(nameof(regionTypeRefDataService));
            }
            if (contextManager == null)
            {
                throw new ArgumentNullException(nameof(contextManager));
            }
            if (userManager == null)
            {
                throw new ArgumentNullException(nameof(userManager));
            }
            if (roleManager == null)
            {
                throw new ArgumentNullException(nameof(roleManager));
            }

            _parameterService         = parameterService;
            _customerService          = customerService;
            _contributorService       = contributorService;
            _assetService             = assetService;
            _regionTypeRefDataService = regionTypeRefDataService;
            _contextManager           = contextManager;
            _userManager = userManager;
            _roleManager = roleManager;
        }
Exemple #32
0
        public ServiceDomainController(IServiceDomainService serviceDomainService,
                                       IServiceDeskService serviceDeskService,
                                       IDomainTypeRefDataService domainTypeRefDataService,
                                       IParameterService parameterService,
                                       ITemplateService templateService,
                                       IContextManager contextManager,
                                       IAppUserContext appUserContext)
        {
            if (serviceDomainService == null)
            {
                throw new ArgumentNullException(nameof(serviceDomainService));
            }

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

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

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

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

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

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

            _serviceDomainService     = serviceDomainService;
            _serviceDeskService       = serviceDeskService;
            _domainTypeRefDataService = domainTypeRefDataService;
            _parameterService         = parameterService;
            _templateService          = templateService;
            _contextManager           = contextManager;
            _appUserContext           = appUserContext;
        }
Exemple #33
0
        /// <summary>
        /// Initialises a new instance of the ConverterService class.
        /// </summary>
        /// <param name="settings"><c>TextEncodingConverterSettings</c> instance.</param>
        /// <param name="parameterService"><c>ParameterService</c> instance.</param>
        /// <remarks>
        /// When initialised, default values of input and output are to be:
        /// <list type="bullet">
        ///     <item>
        ///         <term>Input CodePage:</term>
        ///         <description>949 (ks_c_5601-1987)</description>
        ///     </item>
        ///     <item>
        ///         <term>Output CodePage:</term>
        ///         <description>65001 (utf-8)</description>
        ///     </item>
        ///     <item>
        ///         <term>Output Directory:</term>
        ///         <description>./output</description>
        ///     </item>
        /// </list>
        /// </remarks>
        public ConverterService(ITextEncodingConverterSettings settings, IParameterService parameterService)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }
            this._settings = settings;

            if (parameterService == null)
            {
                throw new ArgumentNullException("parameterService");
            }
            this._parameterService = parameterService;
        }
 /// <summary>
 /// 构造函数(操作函数注入)
 /// </summary>
 public ClassifyController(
     IProductService productService,
     IProductBrandService productBrandService,
     IProductDetailService productDetailService,
     IProductParameterService productParameterService,
     IClassifyService classifyService,
     IParameterValueService parameterValueService,
     IParameterService parameterService,
     IWorkContext workContext)
 {
     _productService = productService;
     _productBrandService = productBrandService;
     _productDetailService = productDetailService;
     _productParameterService = productParameterService;
     _classifyService = classifyService;
     _parameterService = parameterService;
     _parameterValueService = parameterValueService;
     _workContext = workContext;
 }
 /// <summary>
 /// 状态管理初始化
 /// </summary>
 /// <param name="parameterService">parameterService</param>
 /// <param name="areaService">areaService</param>
 /// <param name="parameterValueService">parameterValueService</param>
 public ConditionController(IParameterService parameterService, IAreaService areaService, IParameterValueService parameterValueService)
 {
     _parameterService = parameterService;
     _areaService = areaService;
     _parameterValueService = parameterValueService;
 }
        public ParameterController(IParameterService parameterService, ICategoryService categoryService)
		{
			_parameterService = parameterService;
            _categoryService = categoryService;
		}
 /// <summary>
 /// Initialises a new instance of the ConverterService class.
 /// </summary>
 /// <remarks>
 /// When initialised, default values of input and output are to be:
 /// <list type="bullet">
 ///     <item>
 ///         <term>Input CodePage:</term>
 ///         <description>949 (ks_c_5601-1987)</description>
 ///     </item>
 ///     <item>
 ///         <term>Output CodePage:</term>
 ///         <description>65001 (utf-8)</description>
 ///     </item>
 ///     <item>
 ///         <term>Output Directory:</term>
 ///         <description>./output</description>
 ///     </item>
 /// </list>
 /// </remarks>
 public ConverterService(IParameterService parameterService)
 {
     this._parameterService = parameterService;
 }
        public ParameterValueController(IParameterValueService parameterValueService, IParameterService parameterService)
		{
			_parameterValueService = parameterValueService;
            _parameterService = parameterService;
		}
 public void Init()
 {
     this._parameterService = Substitute.For<IParameterService>();
     this._converterService = new ConverterService(this._parameterService);
 }
Exemple #40
0
 public MailService(IParameterService param, ILogService log)
 {
     this.serviceParams = param;
     this.serviceLog = log;
 }