Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeatureViewModel"/> class.
 /// </summary>
 /// <param name="feature">The feature.</param>
 public FeatureViewModel(Feature feature)
 {
     this.Feature = feature;
     this.StateIcon = "Images/notrun.gif";
     this.Scenarios = new ObservableCollection<ScenarioViewModel>(feature.Scenarios.Select(s => new ScenarioViewModel(s)));
     this.FeatureName = feature.Name;
 }
 protected void I_have_a_feature()
 {
     feature = new FeatureViewModelSpecs();
 }
Пример #3
0
 /// <summary>
 /// Called when a feature ends
 /// </summary>
 /// <param name="feature">The feature.</param>
 private void OnFeatureEnd(Feature feature)
 {
     if(this.FeatureEnd != null)
     {
         this.FeatureEnd(feature);
     }
 }
Пример #4
0
 /// <summary>
 /// Called when a feature begins.
 /// </summary>
 /// <param name="feature">The feature.</param>
 private void OnFeatureBegin(Feature feature)
 {
     if(this.FeatureBegin != null)
     {
         this.FeatureBegin(feature);
     }
 }