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; }
public DownloadRequestReleaseService(IContext context, IParameterService parameterService, IReleaseService releaseService) : base(context) { Dbset = context.Set <DownloadRequestRelease>(); _parameterService = parameterService; _releaseService = releaseService; }
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; }
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); }
/// <summary> /// 建構子 /// </summary> /// <param name="shippingOrderRepository">配送訂單儲存庫</param> /// <param name="parameterService">參數表服務</param> public ShippingOrderService( IShippingOrderRepository shippingOrderRepository, IParameterService parameterService) { this.ShippingOrderRepository = shippingOrderRepository; this.ParameterService = parameterService; }
public LoginController(IUserService userService, ICompanyService companyService, IUserTokenService userTokenService, IParameterService parameterService) { _userService = userService; _companyService = companyService; _userTokenService = userTokenService; _parameterService = parameterService; }
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; }
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:", "")); }
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; }
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; }
//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; }
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")); }
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; }
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; }
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); }
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; }
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(); }
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(); }
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; }
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; }
/// <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); }
public MailService(IParameterService param, ILogService log) { this.serviceParams = param; this.serviceLog = log; }