private static State Given(State st, UserCreated ev) { return(st); }
public IEnumerable <(Guid, ICommand)> When(EventMetadata m, UserCreated ev) { // here we calculate how the e-mail should look like... yield return(Guid.NewGuid(), new SendEmail()); }