public void When(RegistrationStarted evt) { _commandSender.SendCommand( new CreateSecurityForRegistration(evt.Security.SecurityId, evt.RegistrationId, evt.Security)); _commandSender.SendCommand( new CreateProfileForRegistration(evt.Profile.ProfileId, evt.RegistrationId, evt.Profile)); }
public void When(RegistrationStarted evt) { _writer.Add(evt.RegistrationId, new RegistrationStatusView { Status = RegistrationProcessStatus.InProgress, Login = evt.Security.Login, DisplayName = evt.Profile.DisplayName, Email = evt.Security.Email, Errors = new List<string>() }); }
public void When(RegistrationStarted evt) { Id = evt.RegistrationId; Login = evt.Security.Login; }