Пример #1
0
        public BaseStep(IWebDriver webDriver, FeatureContext featureContext)
        {
            driver            = webDriver;
            FeatureContext    = featureContext;
            InventoryProvider = ConfigurationManager.AppSettings["InventoryProvider"];

            if (FeatureContext.FeatureInfo.Tags.Contains("WorkFlowTest"))
            {
                WorkflowTestData = FeatureContext[ContextStrings.WorkflowTestData] as WorkflowTestData;
                WorkflowTestData.NonMediaCostData = WorkflowTestData.NonMediaCostData ?? new List <NonMediaCostData>();
            }

            if (FeatureContext.FeatureInfo.Tags.Contains("Performance"))
            {
                WorkflowTestData = FeatureContext[ContextStrings.PerformanceTestData] as WorkflowTestData;
                WorkflowTestData.NonMediaCostData = WorkflowTestData.NonMediaCostData ?? new List <NonMediaCostData>();
            }

            AgencySetupData = FeatureContext[ContextStrings.AgencySetupData] as AgencyInfrastructureData;

            if (!FeatureContext.FeatureInfo.Title.Equals("Generic_Setup"))
            {
                AgencyTimeZoneInfo = GetTimeZoneInfoFromDisplayName(AgencySetupData.SymphonyAdminData.Agencies.First().TimeZone);
            }

            GenericSetupData = FeatureContext[ContextStrings.GenericSetupData] as GenericInfrastructureData;
            FeatureToggles   = GenericSetupData.SymphonyAdminData.FeatureToggles;

            NavigationPage       = new NavigationPage(driver, featureContext);
            AdslotNavigationPage = new AdslotNavigationPage(driver, featureContext);
        }
 public void NavigateTo(string pageToNavigateTo)
 {
     AdslotNavigationPage.NavigateTo(pageToNavigateTo);
 }
Пример #3
0
 public void LogOutFromAdslotPublisher()
 {
     AdslotNavigationPage.LogoutToAdslotPublisher();
 }