public static IReactionScenarioThenStateBuilder Then(this IReactionScenarioGivenStateBuilder builder, params RecordedEvent[] events) { if (events == null) { throw new ArgumentNullException(nameof(events)); } return(builder.Then(events)); }
public static IReactionScenarioThenStateBuilder Then(this IReactionScenarioGivenStateBuilder builder, StreamName stream, params object[] events) { if (events == null) { throw new ArgumentNullException(nameof(events)); } return(builder.Then(events.Select(@event => new RecordedEvent(stream, @event)))); }