public void Handle(AccountCreated message)
 {
     SendNotification(message.StreamId, string.Format("Account {0} created", message.Email));
 }
 public static void OnAccountCreated(AccountCreated msg)
 {
     Email = msg.Email;
     Hash = msg.PasswordHash;
 }
 void Apply(AccountCreated evt)
 {
     Email = evt.Email;
     PasswordHash = evt.PasswordHash;
 }