Guided Onboarding Session (Dec 2, 2020)Completed
We are happy that many of you joined our first Guiding Onboarding Session. Please feel free to leave us some feedback, we are happy to hear from you!
Thank you for the effort to bring the community together! SpecFlow is a great framework, i am about to use the living documentation for the 1st time in a project, so that is exciting.0
In todays session we have created calculator object to access the properties and methods in it
private readonly Calculator _calculator = new Calculator();
but I have seen another way how we can implement in constructor as below. Can you please explain the difference, how it works in background
private readonly ScenarioContext _scenarioContext;
private readonly Calculator _calculator;
private int _result;
public CalculatorStepDefinitions(ScenarioContext scenarioContext, Calculator calculator)
_scenarioContext = scenarioContext;
this._calculator = calculator;
Please sign in to leave a comment.