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); }
public TestBot(ZennoLab.CommandCenter.Instance instance, IZennoPosterProjectModel project) : base(instance, project) { }
/// <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)); }