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