Exemplo n.º 1
0
 public void Dispose()
 {
     _folderParserService = null;
     _folderManager       = null;
     _calculationService  = null;
     _fileReaderService   = null;
     _dataProcessor       = null;
     _outputService       = null;
     _fileSystem          = null;
     _medianManager       = null;
     _configService       = null;
 }
Exemplo n.º 2
0
 public AppLauncherTest()
 {
     _fileSystem          = new FileSystem();
     _folderParserService = new FolderParserService(_fileSystem);
     _folderManager       = new FolderManager(_folderParserService);
     _calculationService  = new CalculationService();
     _fileReaderService   = new FileReaderService(_fileSystem);
     _dataProcessor       = new DataProcessor(_calculationService, _fileReaderService);
     _outputService       = new ConsoleOutputService();
     _medianManager       = new MedianManager(_folderManager, _dataProcessor, _outputService);
     _configService       = new ConfigService(new ConfigurationBuilder()
                                              .SetBasePath(Directory.GetCurrentDirectory())
                                              .AddJsonFile("appsettings.json")
                                              .Build());
 }
Exemplo n.º 3
0
 public FolderManager(IFolderParserService folderParserService)
 {
     _folderParserService = folderParserService ?? throw new ArgumentNullException(nameof(folderParserService));
 }