Exemple #1
0
 public FilesController(FilesSettings filesSettings, IDocumentStore store, IHostingEnvironment hostingEnvironment)
 {
     if (!string.IsNullOrWhiteSpace(filesSettings.Path))
     {
         filesPath = filesSettings.Path;
     }
     else
     {
         filesPath = hostingEnvironment.WebRootPath;
     }
 }
Exemple #2
0
        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";
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 public void SetUp()
 {
     filesSettings = new FilesSettings();
 }
Exemple #5
0
 public FileService(IConfiguration configuration)
 {
     _filesSettings = configuration.GetSection(nameof(FilesSettings)).Get <FilesSettings>();
 }
Exemple #6
0
 public PersonalDetailsService(IUserRepository userRepository, FilesSettings filesSettings)
 {
     _userRepository = userRepository;
     _filesSettings  = filesSettings;
 }
Exemple #7
0
 public void SetUp()
 {
     filesSettings = new FilesSettings();
     boringWords   = "b, d";
     filesSettings.BoringWordsFilePath = @"..\..\boring words.txt";
 }
Exemple #8
0
 public TextAnalyzer(FilesSettings filesSettings)
 {
     this.filesSettings = filesSettings;
 }
Exemple #9
0
 public AppSettings(FilesSettings filesSettings, ImageSettings imageSettings)
 {
     FilesSettings = filesSettings;
     ImageSettings = imageSettings;
 }
 public GetPriceListHandler(IOptions <FilesSettings> filesSettings)
 {
     _filesSettings = filesSettings.Value;
 }
Exemple #11
0
 public FilesSettingsAction(FilesSettings filesSettings)
 {
     this.filesSettings = filesSettings;
 }
Exemple #12
0
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="dataService">Экземпляр интерфейса для получения необработанных данных откуда либо.</param>
 /// <param name="filesSettings">Экземпляр объекта конфигурации для получения названий файлов.</param>
 public PreparedExcelData(IImportDataService dataService, FilesSettings filesSettings)
 {
     _dataService   = dataService;
     _filesSettings = filesSettings;
 }