static void Main() { var config = new ConfigSerialization().Model; var youtube = new YoutubeHandler(config); var model = new ConsoleModel(); model.Setup(config, youtube); var view = new ConsoleView(); var controller = new ConsoleController(model, view); view.OnReady(); }
static void Main() { /** * Application tools */ var config = new ConfigSerialization().Model; var youtube = new YoutubeHandler(config); var trimmer = new Trimmer(config); /** * MVC */ var model = new ConsoleModel(); var view = new ConsoleView(); var controller = new ConsoleController(model, view); model.Setup(config, youtube, trimmer); view.OnReady(); }