Example #1
0
        public TestContext(ZennoLab.CommandCenter.Instance instance, IZennoPosterProjectModel project) : base(instance, project)
        {
            Configuration.IsAutoWaitDownloadingEnabled = true;
            LoginPage = new LoginPage(this);

            var keysAndXpaths = XmlParser.GetKeysAndXPaths(@"D:\Dev\ZennoFramework\XmlParser\SiteData\Elements.xml");
            //Elements = new Elements<Element>(this, keysAndXpaths);
        }
Example #2
0
 public TestBot(ZennoLab.CommandCenter.Instance instance, IZennoPosterProjectModel project) : base(instance, project)
 {
 }
Example #3
0
 /// <summary>
 /// Инициализирует новый экземпляр <see cref="Instance"/>.
 /// </summary>
 /// <param name="instance">Экземпляр <see cref="ZennoLab.CommandCenter.Instance"/>.</param>
 /// <param name="context">Экземпляр контекста <see cref="BotContext"/>.</param>
 public Instance(ZennoLab.CommandCenter.Instance instance, BotContext context)
 {
     ZennoInstance = Check.NotNull(instance, nameof(instance));
     _context      = Check.NotNull(context, nameof(context));
     _logger       = Check.NotNull(context.Logger, nameof(context.Logger));
 }