public Task AccountOpened(AccountOpened accountOpened)
 {
     database.Insert(accountOpened.Number, accountOpened.InitialBalance);
     return(Task.CompletedTask);
 }
Ejemplo n.º 2
0
 public void Apply(AccountOpened accountOpened)
 {
     Context.ActorOf(Account.Create(accountOpened.Number, accountOpened.InitialBalance), $"Account-{accountOpened.Number}");
 }