Beispiel #1
0
        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();
        }
 public TrimmerTest()
 {
     _config    = new ConfigSerialization().Model;
     _ytHandler = new YoutubeHandler(_config);
     _trimmer   = new Trimmer(_config);
 }
 public virtual void Setup(ConfigModel config, YoutubeHandler youtube, Trimmer trimmer)
 {
     Config   = config;
     Youtube  = youtube;
     TrimTool = trimmer;
 }
Beispiel #5
0
 public YoutubeTest()
 {
     _config    = new ConfigSerialization().Model;
     _ytHandler = new YoutubeHandler(_config);
 }
 public void Setup(ConfigModel config, YoutubeHandler youtube)
 {
     Config  = config;
     Youtube = youtube;
 }