Esempio n. 1
0
 public void StorePersonInFeatureContext(string personName)
 {
     var p = new Person {Name = personName};
     FeatureContext.Current.Set(p);
     FeatureContext.Current.Set(p, "PersonKey");
 }
 public void StorePersonInScenarioContext(string personName)
 {
     var p = new Person { Name = personName };
     ScenarioContext.Current.Set<Person>(p);
     ScenarioContext.Current.Set(p, "PersonKey");
 }