Reputation: 1
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