Show / Hide Table of Contents

Class Scenario

Represents a BDD test scenario, that is used as an acceptance criteria for a Story.

Inheritance
Object
Scenario
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Namespace: IRM.Domain.Tests
Assembly: IRM.dll
Syntax
public class Scenario

Constructors

Scenario()

Initializes a new instance of the Scenario class.

Declaration
public Scenario()

Scenario(Type, ScenarioTestAttribute)

Initializes a new instance of the Scenario class from the specified test class and ScenarioTestAttribute.

Declaration
public Scenario(Type testClass, ScenarioTestAttribute attribute)
Parameters
System.Type testClass

The System.Type representing a test class.

ScenarioTestAttribute attribute

The ScenarioTestAttribute that is applied to the test class.

Properties

Given

Gets or sets a description of the required context for this scenario.

Declaration
public string Given { get; set; }
Property Value
String

SortOrder

Gets or sets the sort order of this scenario relative to other scenarios.

Declaration
public int SortOrder { get; set; }
Property Value
System.Int32

Thens

Gets a list of outcomes for this scenario.

Declaration
public List<string> Thens { get; }
Property Value
List<String>

Title

Gets or sets the title of the scenario.

Declaration
public string Title { get; set; }
Property Value
String

When

Gets or sets a description of the action taken in this scenario.

Declaration
public string When { get; set; }
Property Value
String

Extension Methods

ObjectExtensions.DeepClone<T>(T)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX