Show / Hide Table of Contents

Class Story

Represents a BDD story.

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

A BDD story has to be a description of a requirement and its business benefit, and a set of criteria by which we all agree that it is “done”.

Constructors

Story()

Initializes a new instance of the Story class.

Declaration
public Story()

Story(ScenarioTestAttribute)

Initializes a new instance of the Story class from a ScenarioTestAttribute.

Declaration
public Story(ScenarioTestAttribute attribute)
Parameters
ScenarioTestAttribute attribute

The ScenarioTestAttribute that is applied to the test class.

Properties

Narrative

Gets or sets the business requirement and its business benefit.

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

Remarks

This should be on the form:
As a [role]
I want [feature]
So that [benefit]

Scenarios

Gets the acceptance criteria for this story as scenarios.

Declaration
public ScenarioList Scenarios { get; }
Property Value
ScenarioList

SortOrder

Gets or sets the sort order of this story relative to other stories.

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

Title

Gets or sets the title of the story.

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

Methods

AddScenario(Type)

Adds a scenario to this story.

Declaration
public void AddScenario(Type testClass)
Parameters
System.Type testClass

The System.Type representing a test class.

AddScenario(Type, ScenarioTestAttribute)

Adds a scenario to this story.

Declaration
public void AddScenario(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.

Equals(Story)

Returns a value indicating whether this instance and a specified Story object represent the same value.

Declaration
public bool Equals(Story other)
Parameters
Story other

The Story to compare with this instance.

Returns
Boolean

true if other is the same story as this one; otherwise false.

Equals(Object)

Returns a value indicating whether this instance and a specified Story object represent the same value.

Declaration
public override bool Equals(object obj)
Parameters
Object obj

The Story to compare with this instance.

Returns
Boolean

true if obj is the same sotry as this one; otherwise false.

Overrides
Object.Equals(Object)

FormatNarrative()

Formats the narrative so that each part gets a line.

Declaration
public string FormatNarrative()
Returns
String

A formatted Narrative.

FormatNarrative(String)

Formats the narrative so that each part gets a line.

Declaration
public string FormatNarrative(string newLine)
Parameters
String newLine

The string used to create a new line.

Returns
String

A formatted Narrative.

GetHashCode()

Returns the hash code for this instance.

Declaration
public override int GetHashCode()
Returns
System.Int32

The hash code for this instance.

Overrides
System.Object.GetHashCode()

Extension Methods

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