Migration Guide
// BEFORE
.Then<TransferInstructionCreatedChapter>();
// NEW
.ProceedToChapter<TransferInstructionCreatedChapter>();
// BEFORE
Scenario.Given.That
.An_investor_has_been_created();
// AFTER
Scenario.Given
.An_investor_has_been_created();
Replace all references of IScenarioContext with ScenarioContext
Example this code:
public static readonly Func<ScenarioContext, StoryInput, StoryParameters, StoryOuput> AccountTransactionCreated =
(context, input, parameters) =>
{
StoryOutput output = // Do Some work here
return ouput;
};
Should change to:
public static readonly Func<ScenarioContext<StoryInput>, StoryParameters, StoryOuput> AccountTransactionCreated =
(context, parameters) =>
{
// Story Input is now accessed through the Scenario Context
var storyInput = context.StoryInput;
// Do work here
StoryOutput output = // Do Some work here
return ouput;
};
.UseResult(clientRegistered => newClient = clientRegistered );
refactored to:
.GetResult(out NewClientRegistered? newClient);
Last modified 2yr ago