/// <summary> /// Initializes a new instance of the <see cref="NoConnectivitySteps" /> class. /// </summary> /// <param name="noConnectivityPage">The chat with communities page.</param> public NoConnectivitySteps(INoConnectivityPage noConnectivityPage, ISetUp setUp) { TestConfiguration.CurrentScenario = ScenarioContext.Current.ScenarioInfo.Title; this.noConnectivityPage = noConnectivityPage; this.setUp = setUp; }
/// <summary> /// Initializes a new instance of the <see cref="AboutSteps" /> class. /// </summary> /// <param name="aboutPage">The About iThemba page.</param> /// <param name="setUp">The set up.</param> public AboutSteps(IAboutPage aboutPage, ISetUp setUp) { TestConfiguration.CurrentScenario = ScenarioContext.Current.ScenarioInfo.Title; this.aboutPage = aboutPage; this.setUp = setUp; }
/// <summary> /// Initializes a new instance of the <see cref="SurveySteps" /> class. /// </summary> /// <param name="setUp">The set up.</param> /// <param name="surveyPage">The survey page.</param> public SurveySteps(ISetUp setUp, ISurveyPage surveyPage, IAnalytics analytics) { TestConfiguration.CurrentScenario = ScenarioContext.Current.ScenarioInfo.Title; this.surveyPage = surveyPage; this.setUp = setUp; this.analytics = analytics; }
/// <summary> /// Initializes a new instance of the <see cref="BloodResultsSteps" /> class. /// </summary> /// <param name="bloodResultsPage">The blood results page.</param> public BloodResultsSteps(IBloodResultsPage bloodResultsPage, ISetUp setUp, IAnalytics analytics) { TestConfiguration.CurrentScenario = ScenarioContext.Current.ScenarioInfo.Title; this.bloodResultsPage = bloodResultsPage; this.setUp = setUp; this.analytics = analytics; }
/// <summary> /// Initializes a new instance of the <see cref="MainPageSteps" /> class. /// </summary> /// <param name="setUp">The set up.</param> /// <param name="mainPage">The main page.</param> public MainPageSteps(ISetUp setUp, IMainPage mainPage, IAnalytics analytics) { TestConfiguration.CurrentScenario = ScenarioContext.Current.ScenarioInfo.Title; this.mainPage = mainPage; this.setUp = setUp; this.analytics = analytics; }
/// <summary> /// Initializes a new instance of the <see cref="PageBase"/> class. /// </summary> /// <param name="setUpWebDriver">The set up web driver.</param> public PageBase(ISetUp setUpWebDriver) { this.webDriver = setUpWebDriver.LaunchDriver(); if (this.webDriver != null) { this.webDriverWait = new WebDriverWait(this.webDriver, TimeSpan.FromSeconds(15)); } }
public MethodDefinitionPopulateScope( ISetUp <IBox <IFrontendType <IVerifiableType> >, Tpn.TypeProblem2.TypeReference> parameterDefinition, IReadOnlyList <IOrType <ISetUp <IBox <IFrontendCodeElement>, Tpn.ITypeProblemNode>, IError> > elements, ISetUp <IBox <IFrontendType <IVerifiableType> >, Tpn.TypeProblem2.TypeReference> output, string parameterName ) { this.parameterDefinition = parameterDefinition ?? throw new ArgumentNullException(nameof(parameterDefinition)); this.elements = elements ?? throw new ArgumentNullException(nameof(elements)); this.output = output ?? throw new ArgumentNullException(nameof(output)); this.parameterName = parameterName ?? throw new ArgumentNullException(nameof(parameterName)); }
/// <summary> /// Initializes a new instance of the <see cref="LoginBaseSteps" /> class. /// </summary> /// <param name="setUp">The set up.</param> /// <param name="LoginBasePage">The login page.</param> public LoginBaseSteps(ISetUp setUp, ILoginBasePage LoginBasePage) { this.setUp = setUp; this.LoginBasePage = LoginBasePage; }
/// <summary> /// Initializes a new instance of the <see cref="DashboardReportsPage"/> class. /// </summary> /// <param name="setUpWebDriver">The set up web driver.</param> public DashboardReportsPage(ISetUp setUpWebDriver) : base(setUpWebDriver) { PageFactory.InitElements(webDriver, this); }
/// <summary> /// Initializes a new instance of the <see cref="MenuDrawerPage"/> class. /// </summary> /// <param name="setUpWebDriver">The set up web driver.</param> public MenuDrawerPage(ISetUp setUpWebDriver) : base(setUpWebDriver) { PageFactory.InitElements(webDriver, this); }
public ISetUpContext CreateChildContext(ISetUp setUp) { return(new SetUpContext(TypeProblem, Possibly.Is(this), Possibly.Is(setUp))); }
/// <summary> /// Initializes a new instance of the <see cref="AboutPage"/> class. /// </summary> /// <param name="setUpWebDriver">The set up web driver.</param> public AboutPage(ISetUp setUpWebDriver) : base(setUpWebDriver) { PageFactory.InitElements(webDriver, this); }
public ITokenMatching <ISetUp <IBox <WeakImplementationDefinition>, Tpn.IValue> > TryMake(IMatchedTokenMatching tokenMatching) { // this is not great // but the typing here is hard to get right #pragma warning disable CS8600 // Converting null literal or possible null value to non-nullable type. ISetUp <IBox <IFrontendType <IVerifiableType> >, Tpn.TypeProblem2.TypeReference> context = null, input = null, output = null; #pragma warning restore CS8600 // Converting null literal or possible null value to non-nullable type. var match = tokenMatching .Has(new KeyWordMaker("implementation"), out var _) .HasSquare(x => x .HasLine(y => y .Has(new TypeMaker(), out context) .Has(new DoneMaker())) .HasLine(y => y .Has(new TypeMaker(), out input) .Has(new DoneMaker())) .HasLine(y => y .Has(new TypeMaker(), out output) .Has(new DoneMaker())) .Has(new DoneMaker())) .OptionalHas(new NameMaker(), out var contextName) .OptionalHas(new NameMaker(), out var parameterName) .Has(new BodyMaker(), out var body); if (match is IMatchedTokenMatching matched) { var elements = tokenMatching.Context.ParseBlock(body !); return(TokenMatching <ISetUp <IBox <WeakImplementationDefinition>, IValue> > .MakeMatch( tokenMatching, new PopulateScopeImplementationDefinition( context !, input !, elements, output !, contextName?.Item ?? "context", parameterName?.Item ?? "input"), matched.EndIndex)); } return(TokenMatching <ISetUp <IBox <WeakImplementationDefinition>, IValue> > .MakeNotMatch(match.Context)); }
/// <summary> /// Initializes a new instance of the <see cref="SearchBarcodePage"/> class. /// </summary> /// <param name="setUpWebDriver">The set up web driver.</param> public SearchBarcodePage(ISetUp setUpWebDriver) : base(setUpWebDriver) { PageFactory.InitElements(webDriver, this); }
/// <summary> /// Initializes a new instance of the <see cref="AddTaskPage"/> class. /// </summary> /// <param name="setUpDriver">The set up driver.</param> public AddTaskPage(ISetUp setUpDriver) : base(setUpDriver) { PageFactory.InitElements(this.webDriver, this); }
/// <summary> /// Initializes a new instance of the <see cref="NoConnectivityPage"/> class. /// </summary> /// <param name="setUpWebDriver">The set up web driver.</param> public NoConnectivityPage(ISetUp setUpWebDriver) : base(setUpWebDriver) { PageFactory.InitElements(webDriver, this); }
public WebPageBase(ISetUp setUp, ITestOutputHelper testOutputHelper) { WebDriver = setUp.WebDriver ?? throw new ArgumentNullException(nameof(setUp)); TestOutputHelper = testOutputHelper ?? throw new ArgumentNullException(nameof(testOutputHelper)); }
/// <summary> /// Initializes a new instance of the <see cref="BloodResultsPage"/> class. /// </summary> /// <param name="setUpWebDriver">The set up web driver.</param> public BloodResultsPage(ISetUp setUpWebDriver) : base(setUpWebDriver) { PageFactory.InitElements(webDriver, this); }
/// <summary> /// Initializes a new instance of the <see cref="SearchBarcodeSteps" /> class. /// </summary> /// <param name="setUp">The setup page.</param> /// <param name="searchBarcodePage">The search barcode page.</param> public SearchBarcodeSteps(ISetUp setUp, ISearchBarcodePage searchBarcodePage) { this.searchBarcodePage = searchBarcodePage; this.setUp = setUp; }
public AfterSteps(ISetUp setUpDriver) { this.setUpDriver = setUpDriver ?? throw new ArgumentNullException(nameof(setUpDriver)); }
public ExamplePage(ISetUp setUp, ITestOutputHelper testOutputHelper) : base(setUp, testOutputHelper) { }
public MemberDefinitionPopulateScope(IKey item, bool isReadonly, ISetUp <IBox <IFrontendType <IVerifiableType> >, Tpn.TypeProblem2.TypeReference> typeToken) { memberName = item ?? throw new ArgumentNullException(nameof(item)); access = isReadonly ? Access.ReadOnly: Access.ReadWrite; type = typeToken ?? throw new ArgumentNullException(nameof(typeToken)); }
public ExamplePageSteps(IExamplePage examplePage, ISetUp setUpDriver, IConfigurationRoot configurationRoot) { this.setUpDriver = setUpDriver ?? throw new ArgumentNullException(nameof(setUpDriver)); this.examplePage = examplePage ?? throw new ArgumentNullException(nameof(examplePage)); this.configurationRoot = configurationRoot ?? throw new ArgumentNullException(nameof(configurationRoot)); }
/// <summary> /// Initializes a new instance of the <see cref="UnreleasedResultPage"/> class. /// </summary> /// <param name="setUpWebDriver">The set up web driver.</param> public UnreleasedResultPage(ISetUp setUpWebDriver) : base(setUpWebDriver) { PageFactory.InitElements(webDriver, this); }
/// <summary> /// Initializes a new instance of the <see cref="CommunitiesPage"/> class. /// </summary> /// <param name="setUpWebDriver">The set up web driver.</param> public CommunitiesPage(ISetUp setUpWebDriver) : base(setUpWebDriver) { PageFactory.InitElements(webDriver, this); }
public ITokenMatching <ISetUp <IBox <WeakMethodDefinition>, Tpn.TypeProblem2.Method> > TryMake(IMatchedTokenMatching tokenMatching) { #pragma warning disable CS8600 // Converting null literal or possible null value to non-nullable type. ISetUp <IBox <IFrontendType <IVerifiableType> >, Tpn.TypeProblem2.TypeReference> inputType = null, outputType = null; #pragma warning restore CS8600 // Converting null literal or possible null value to non-nullable type. var matching = tokenMatching .Has(new KeyWordMaker("method"), out var _) .HasSquare(x => x .HasLine(y => y .Has(new TypeMaker(), out inputType) .Has(new DoneMaker())) .HasLine(y => y .Has(new TypeMaker(), out outputType) .Has(new DoneMaker())) .Has(new DoneMaker())) .OptionalHas(new NameMaker(), out var parameterName) .Has(new BodyMaker(), out var body); if (matching is IMatchedTokenMatching matched) { var elements = matching.Context.ParseBlock(body); return(TokenMatching <ISetUp <IBox <WeakMethodDefinition>, Tpn.TypeProblem2.Method> > .MakeMatch( tokenMatching, new MethodDefinitionPopulateScope( inputType !, elements, outputType !, parameterName !.Item), matched.EndIndex )); } return(TokenMatching <ISetUp <IBox <WeakMethodDefinition>, Tpn.TypeProblem2.Method> > .MakeNotMatch( matching.Context)); }
public RealizeMethodOperationPopulateScope(ISetUp lhs, TypeReferancePopulateScope[] typeReferancePopulateScopes) { this.lhs = lhs ?? throw new ArgumentNullException(nameof(lhs)); this.typeReferancePopulateScopes = typeReferancePopulateScopes ?? throw new ArgumentNullException(nameof(typeReferancePopulateScopes)); }
/// <summary> /// Initializes a new instance of the <see cref="MainPageSteps"/> class. /// </summary> /// <param name="setUpDriver">The set up driver.</param> /// <param name="mainPage">The main page.</param> public MainPageSteps(ISetUp setUpDriver, IMainPage mainPage) { this.setUpDriver = setUpDriver; this.mainPage = mainPage; }
/// <summary> /// Initializes a new instance of the <see cref="AndroidAddTaskPage"/> class. /// </summary> /// <param name="setUpAndroidDriver"></param> public AndroidAddTaskPage(ISetUp setUpAndroidDriver) : base(setUpAndroidDriver) { PageFactory.InitElements(this.androidDriver, this); }
/// <summary> /// Initializes a new instance of the <see cref="UserProfilePage"/> class. /// </summary> /// <param name="setUpWebDriver">The set up web driver.</param> public UserProfilePage(ISetUp setUpWebDriver) : base(setUpWebDriver) { PageFactory.InitElements(webDriver, this); }