public Task AccountOpened(AccountOpened accountOpened)
 {
     database.Insert(accountOpened.Number, accountOpened.InitialBalance);
     return(Task.CompletedTask);
 }
Пример #2
0
 public void Apply(AccountOpened accountOpened)
 {
     Context.ActorOf(Account.Create(accountOpened.Number, accountOpened.InitialBalance), $"Account-{accountOpened.Number}");
 }