public static EventEntity MakeEventEntity(CreateUserCmd cmd) { return(new EventEntity { UserId = cmd.UserId, Body = new UserCreatedEvt(cmd) }); }
public static EventEntity MakeEventEntity(CreateUserCmd cmd, long userId, string hashedPassword) { return(new EventEntity { UserId = cmd.UserId, Body = new PasswordChangedEvt(userId, hashedPassword) }); }
public UserCreatedEvt(CreateUserCmd cmd) { Name = cmd.Name; Lastname = cmd.Lastname; Email = cmd.Email; }