예제 #1
0
        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();
        }
예제 #2
0
 public Presenter(IView view, AppConfig config, XsdProcessor xsdProcessor)
 {
     this.view         = view;
     this.config       = config;
     this.xsdProcessor = xsdProcessor;
 }