Varun Nayak
Varun Nayak

Reputation: 1

In spec flow is scenario context Injection thread safe?

http://www.specflow.org/documentation/Context-Injection/

[Binding]
public class MyStepDefs
{
  private readonly PersonData personData;
  public MyStepDefs(PersonData personData) // use it as ctor parameter
  { 
    this.personData = personData;
  }

  [Given] 
  public void The_person_FIRSTNAME_LASTNAME(string firstName, string lastName) 
  {

  }
}

here is PersonData thread safe?

Upvotes: 0

Views: 390

Answers (1)

Sam Holder
Sam Holder

Reputation: 32936

Yes I believe it is thread safe.

Upvotes: 1

Related Questions