Skip to main content

Guided Onboarding Session (Dec 2, 2020)

Completed

Comments

2 comments

  • xlnt4real

    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;
    }

     

     

    0

Please sign in to leave a comment.

Powered by Zendesk