private static async Task Main(string[] args) { var consoleView = new ConsoleView(); var config = new AppConfig(); var xsdProcessor = new XsdProcessor(); var validationResult = config.Validate(); if (!string.IsNullOrEmpty(config.Validate())) { consoleView.ShowMessage("Invalid app.config file: " + validationResult); return; } var presenter = new Presenter(consoleView, config, xsdProcessor); await presenter.Run(); }
public Presenter(IView view, AppConfig config, XsdProcessor xsdProcessor) { this.view = view; this.config = config; this.xsdProcessor = xsdProcessor; }