Created
February 20, 2017 06:58
-
-
Save gasparnagy/c3de41a4b60a89eb443d612d0af4e1ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Binding] | |
public class CalculatorSteps | |
{ | |
private readonly ScenarioContext scenarioContext; | |
public CalculatorSteps(ScenarioContext scenarioContext) | |
{ | |
this.scenarioContext = scenarioContext; | |
} | |
[Given(@"I have entered (.*) into the calculator")] | |
public void GivenIHaveEnteredIntoTheCalculator(int operand) | |
{ | |
((Calculator)scenarioContext["calc"]).Enter(operand); | |
} | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment