Exemplo n.º 1
0
        public BankAccount(Guid id, string name, decimal total)
        {
            var @event = new BankAccountCreated(
                id,
                name,
                total
                );

            Append(@event);
            Apply(@event);
        }
Exemplo n.º 2
0
 public void Apply(BankAccountCreated @event)
 {
     Id    = @event.AccountId;
     Name  = @event.Name;
     Total = @event.Total;
 }