Пример #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();
        }
Пример #2
0
        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();
        }
Пример #3
0
 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;
 }
Пример #5
0
 public YoutubeTest()
 {
     _config    = new ConfigSerialization().Model;
     _ytHandler = new YoutubeHandler(_config);
 }
Пример #6
0
 public void Setup(ConfigModel config, YoutubeHandler youtube)
 {
     Config  = config;
     Youtube = youtube;
 }