public Interpreter(IGenericHelper genericHelper, IFunctionHelper functionHelper, IIntegerHelper integerHelper, IRealHelper realHelper, IBooleanHelper booleanHelper, ISetHelper setHelper, IElementHelper elementHelper, IStringHelper stringHelper, IGraphHelper graphHelper, bool catchExceptions) { _catchExceptions = catchExceptions; _exceptions = new ComponentException(); _functionHelper = functionHelper; _integerHelper = integerHelper; _integerHelper.SetInterpreter(this); _realHelper = realHelper; _realHelper.SetInterpreter(this); _booleanHelper = booleanHelper; _booleanHelper.SetInterpreter(this); _genericHelper = genericHelper; _genericHelper.SetInterpreter(this); _setHelper = setHelper; _setHelper.SetInterpreter(this); _elementHelper = elementHelper; _elementHelper.SetInterpreter(this); _stringHelper = stringHelper; _stringHelper.SetInterpreter(this); _graphHelper = graphHelper; _graphHelper.SetInterpreter(this); }
public AddItemAction(IShoppingListManager listManager, IDataProvider <Product> dataProvider, IStringHelper actionsHelper) { this.dataProvider = dataProvider; this.actionsHelper = actionsHelper; shoppingListManager = listManager; ActionString = "add item"; }
public Logger(IJsonLogger jsonLogger, IHtmlLogger htmlLogger, IStringHelper stringHelper, IConsoleManager consoleManager) { _jsonLogger = jsonLogger; _htmlLogger = htmlLogger; _stringHelper = stringHelper; _consoleManager = consoleManager; }
public PackageService( IDatabaseContext databaseContext, IStringHelper stringHelper) { _databaseContext = databaseContext; _stringHelper = stringHelper; }
public PackageNotificationTargetService( IDatabaseContext databaseContext, IStringHelper stringHelper) { _databaseContext = databaseContext; _stringHelper = stringHelper; }
public VerificationService(IImageService imageService, IClientService clientService, IStringHelper stringHelper, IAudioService audioService) { this.audioService = audioService; this.imageService = imageService; this.clientService = clientService; this.stringHelper = stringHelper; }
public DataProcessor(IConsoleManager consoleManager, IStringHelper stringHelper, IWebCrawler webCrawler, IExcelLogger excelLogger, ILogger logger) { _consoleManager = consoleManager; _stringHelper = stringHelper; _webCrawler = webCrawler; _excelLogger = excelLogger; _logger = logger; }
public static Interpreter GetIntepreterOnlyWith(IBooleanHelper booleanHelper) { IFunctionHelper functionHelper = Substitute.For <IFunctionHelper>(); IIntegerHelper integerHelper = Substitute.For <IIntegerHelper>(); IRealHelper realHelper = Substitute.For <IRealHelper>(); IGenericHelper genericHelper = Substitute.For <IGenericHelper>(); ISetHelper setHelper = Substitute.For <ISetHelper>(); IElementHelper elemHelper = Substitute.For <IElementHelper>(); IStringHelper stringHelper = Substitute.For <IStringHelper>(); IGraphHelper graphHelper = Substitute.For <IGraphHelper>(); return(new Interpreter(genericHelper, functionHelper, integerHelper, realHelper, booleanHelper, setHelper, elemHelper, stringHelper, graphHelper, false)); }
public ClientService(IHostingHelper hostingHelper, IStringHelper stringHelper, IAppSettingsHelper appSettingsHelper) { this.appSettingsHelper = appSettingsHelper; this.stringHelper = stringHelper; validationItems = new Dictionary <string, List <ValidationItem> >(); pathToFile = hostingHelper.GetRootPath("App_Data\\clients.json"); using (TextReader reader = new StreamReader(pathToFile, Encoding.UTF8)) { clientItems = JsonConvert.DeserializeObject <Dictionary <string, ClientItem> >(reader.ReadToEnd()); } }
public TwitterFeedService( ILogger <TwitterFeedService> log, IConfiguration config, IColorLogWriter colorLogWriter, ITwitterHelperService twitterHelperService, IStringHelper stringHelper ) { _log = log; _config = config; _colorLogWriter = colorLogWriter; _stringHelper = stringHelper; _twitterHelperService = twitterHelperService; twitterTracker = new TwitterTracker(); }
public RecordProcessorManager( IBoxLocations boxLocations, ILogger <IRecordProcessorManager> logger, IRecordProcessorBase processor, IStringHelper stringHelper) { this.stringHelper = stringHelper; this.logger = logger; this.processor = processor; this.TaskId = processor.GUID; var fileInfo = new FileInfo(processor.ConfigFile); //configs for revealing processing stage this.ConfigFile = fileInfo.FullName; this.RunningConfigFile = Path.Combine(boxLocations.RunningDir, fileInfo.Name); this.EndConfigFile = Path.Combine(boxLocations.EndDir, fileInfo.Name); this.OutputFile = Path.Combine(boxLocations.OutputDir, fileInfo.Name); }
public LogHelper(IStringHelper stringHelper) { _stringHelper = stringHelper; }
public PasswordHelper(IStringHelper stringHelper) { this._stringHelper = stringHelper; }
public string NewFormatUserName(IStringHelper stringHelper, string userName) { return(stringHelper.ToBase64(userName)); }
/// <summary> /// 构造函数注入 /// </summary> /// <param name="stringHelper"></param> public Users(IStringHelper stringHelper) { _stringHelper = stringHelper; }
public StringHelperTests() { _stringHelper = new StringHelper(); }
public TwitterHelperService(IColorLogWriter colorLogWriter, IStringHelper stringHelper, IConfiguration config) { _colorLogWriter = colorLogWriter; _stringHelper = stringHelper; _config = config; }
public HeaderGenerator(IStringHelper stringHelper) { _stringHelper = stringHelper; }
/// <summary> /// Initializes a new instance of the <see cref="SourceFormatFactory"/> class. /// </summary> /// <param name="stringHelper"> SourceFormatFactory instance. </param> public SourceFormatFactory(IStringHelper stringHelper) { _stringHelper = stringHelper; }
public FindItemAction(IDataProvider <Product> idataProvider, IStringHelper actionsHelper) { this.actionsHelper = actionsHelper; dataProvider = idataProvider; ActionString = "I want to buy"; }
public void Setup() { _target = new StringHelper(); }
public ModuleStructArgumentsHandler(IStringHelper stringHelper) { _stringHelper = stringHelper; }
/// <summary> /// Initializes a new instance of the <see cref="DimensionStructureFactory"/> class. /// </summary> /// <param name="stringHelper"> StringHelper instance. </param> public DimensionStructureFactory(IStringHelper stringHelper) { _stringHelper = stringHelper ?? throw new ArgumentNullException($"{nameof(stringHelper)}"); }
public ApiHelper(ILogHelper logHelper, IStringHelper stringHelper) { _logHelper = logHelper; _stringHelper = stringHelper; }