static Program() { _consoleArgsReader = new ConsoleArgsReader(); _logger = new Logger(); _fileSystem = new FileSystem(); _configProvider = new ConfigProvider(_fileSystem, _logger, new JsonSerializer(_fileSystem)); _generatorOptionsProvider = new GeneratorOptionsProvider(_fileSystem, _logger); _projectFileManager = new ProjectFileManager(_fileSystem); }
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); }