Пример #1
0
 public static EventEntity MakeEventEntity(CreateUserCmd cmd)
 {
     return(new EventEntity {
         UserId = cmd.UserId,
         Body = new UserCreatedEvt(cmd)
     });
 }
Пример #2
0
 public static EventEntity MakeEventEntity(CreateUserCmd cmd, long userId, string hashedPassword)
 {
     return(new EventEntity {
         UserId = cmd.UserId,
         Body = new PasswordChangedEvt(userId, hashedPassword)
     });
 }
Пример #3
0
 public UserCreatedEvt(CreateUserCmd cmd)
 {
     Name     = cmd.Name;
     Lastname = cmd.Lastname;
     Email    = cmd.Email;
 }