Exemplo n.º 1
0
 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>()
     });
 }
Exemplo n.º 3
0
 public void When(RegistrationStarted evt)
 {
     Id = evt.RegistrationId;
     Login = evt.Security.Login;
 }