public FilesController(FilesSettings filesSettings, IDocumentStore store, IHostingEnvironment hostingEnvironment) { if (!string.IsNullOrWhiteSpace(filesSettings.Path)) { filesPath = filesSettings.Path; } else { filesPath = hostingEnvironment.WebRootPath; } }
public void SetUp() { fontSettings = new FontSettings(); imageSettings = new ImageSettings(); filesSettings = new FilesSettings(); var imageHolder = new PictureBoxImageHolder(); imageHolder.RecreateImage(imageSettings); tagCreator = new TagCreator(fontSettings, new SpiralCloudLayouter(imageSettings), new TextAnalyzer(filesSettings), imageHolder); filesSettings.TextFilePath = @"..\..\testTextAnalyzer.txt"; filesSettings.BoringWordsFilePath = @"..\..\boring words.txt"; }
public void SetUp() { imageSettings = new ImageSettings(); var imageHolder = new PictureBoxImageHolder(); imageHolder.RecreateImage(imageSettings); var colorSettingsProvider = new ColorSettingsProvider(); var filesSettings = new FilesSettings(); filesSettings.TextFilePath = "..\\..\\testTextAnalyzer.txt"; filesSettings.BoringWordsFilePath = "..\\..\\boring words.txt"; var textAnalyzer = new TextAnalyzer(filesSettings); fontSettings = new FontSettings(); var tagCreator = new TagCreator(fontSettings, new SpiralCloudLayouter(imageSettings), textAnalyzer, imageHolder); painter = new Painter(colorSettingsProvider, imageHolder, tagCreator); }
public void SetUp() { filesSettings = new FilesSettings(); }
public FileService(IConfiguration configuration) { _filesSettings = configuration.GetSection(nameof(FilesSettings)).Get <FilesSettings>(); }
public PersonalDetailsService(IUserRepository userRepository, FilesSettings filesSettings) { _userRepository = userRepository; _filesSettings = filesSettings; }
public void SetUp() { filesSettings = new FilesSettings(); boringWords = "b, d"; filesSettings.BoringWordsFilePath = @"..\..\boring words.txt"; }
public TextAnalyzer(FilesSettings filesSettings) { this.filesSettings = filesSettings; }
public AppSettings(FilesSettings filesSettings, ImageSettings imageSettings) { FilesSettings = filesSettings; ImageSettings = imageSettings; }
public GetPriceListHandler(IOptions <FilesSettings> filesSettings) { _filesSettings = filesSettings.Value; }
public FilesSettingsAction(FilesSettings filesSettings) { this.filesSettings = filesSettings; }
/// <summary> /// Конструктор /// </summary> /// <param name="dataService">Экземпляр интерфейса для получения необработанных данных откуда либо.</param> /// <param name="filesSettings">Экземпляр объекта конфигурации для получения названий файлов.</param> public PreparedExcelData(IImportDataService dataService, FilesSettings filesSettings) { _dataService = dataService; _filesSettings = filesSettings; }