private void WhenIGoToStepThreeOfNewDistribution() { //get distribution Form from ScenarioContext DistributionForm newDistribution = ScenarioContext.Current.Get <DistributionForm>("New Distribution Form"); //set some valid data and go through steps 1 and 2 newDistribution.ProposedAmountToDistribute = "$100.00"; string distName = "Test Automation of New Distributions " + this.GetRandomNumber(); newDistribution.DistributionName = distName; newDistribution.ClickOnNext(); newDistribution.PercentageToDistribute = "100"; //removed next button from UI - we now have 2 steps //newDistribution.ClickOnNext(); }
private void WhenIClickOnNextButton() { DistributionForm newDistribution = ScenarioContext.Current.Get <DistributionForm>("New Distribution Form"); newDistribution.ClickOnNext(); }