Skip to content

Commit b41ccc6

Browse files
committed
Renamed StepAction in Step to Action
1 parent 81014f0 commit b41ccc6

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

TestStack.BDDfy/Processors/StoryCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void Process(Story story)
1717
{
1818
scenario.TestObject = null;
1919
foreach (var step in scenario.Steps)
20-
step.StepAction = null;
20+
step.Action = null;
2121
}
2222

2323
Cache.Add(story);

TestStack.BDDfy/Step.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace TestStack.BDDfy
66
public class Step
77
{
88
public Step(
9-
Action<object> stepAction,
9+
Action<object> action,
1010
string title,
1111
bool asserts,
1212
ExecutionOrder executionOrder,
@@ -15,14 +15,14 @@ public Step(
1515
Asserts = asserts;
1616
ExecutionOrder = executionOrder;
1717
ShouldReport = shouldReport;
18-
Result = BDDfy.Result.NotExecuted;
18+
Result = Result.NotExecuted;
1919
Id = Guid.NewGuid();
2020
Title = title;
21-
StepAction = stepAction;
21+
Action = action;
2222
}
2323

2424
public Guid Id { get; private set; }
25-
internal Action<object> StepAction { get; set; }
25+
internal Action<object> Action { get; set; }
2626
public bool Asserts { get; private set; }
2727
public bool ShouldReport { get; private set; }
2828
public string Title { get; private set; }
@@ -37,7 +37,7 @@ public void Execute(object testObject)
3737
Stopwatch sw = Stopwatch.StartNew();
3838
try
3939
{
40-
StepAction(testObject);
40+
Action(testObject);
4141
sw.Stop();
4242
Duration = sw.Elapsed;
4343
}

0 commit comments

Comments
 (0)