コード例 #1
0
ファイル: VkTarget.cs プロジェクト: 111Mihail111/AutoBot
        /// <summary>
        /// Установить контекст для менеджеров
        /// </summary>
        protected void SetContextForManagers()
        {
            _vkManager         = new VkManager();
            _classmatesManager = new ClassmatesManager();
            _yandexZenManager  = new YandexZenManager();
            _tumblrManager     = new TumblrManager();
            _redditManager     = new RedditManager();
            _quoraManager      = new QuoraManager();
            _vimeoManager      = new VimeoManager();
            _logManager        = new LogManager();

            var driver = GetDriver();

            _vkManager.SetContextBrowserManager(driver);
            _classmatesManager.SetContextBrowserManager(driver);
            _yandexZenManager.SetContextBrowserManager(driver);
            _tumblrManager.SetContextBrowserManager(driver);
            _redditManager.SetContextBrowserManager(driver);
            _quoraManager.SetContextBrowserManager(driver);
            _vimeoManager.SetContextBrowserManager(driver);
        }
コード例 #2
0
 public RedditController(IReddit repo)
 {
     redditRepository = repo;
 }