Ejemplo n.º 1
0
 static Program()
 {
     _consoleArgsReader        = new ConsoleArgsReader();
     _logger                   = new ConsoleLogger();
     _fileSystem               = new FileSystem();
     _configProvider           = new ConfigProvider(_fileSystem, _logger);
     _generatorOptionsProvider = new GeneratorOptionsProvider(_fileSystem, _logger);
     _projectFileManager       = new ProjectFileManager(_fileSystem);
 }
Ejemplo n.º 2
0
        private static void InitializeServices(string[] args)
        {
            _consoleArgsReader = new ConsoleArgsReader();

            bool verbose = _consoleArgsReader.ContainsVerboseOption(args);

            _logger = new ConsoleLogger(verbose);

            _fileSystem               = new FileSystem();
            _configProvider           = new ConfigProvider(_fileSystem, _logger);
            _generatorOptionsProvider = new GeneratorOptionsProvider(_fileSystem, _logger);
            _projectFileManager       = new ProjectFileManager(_fileSystem);
            _projectBuilder           = new ProjectBuilder(_logger);
        }