예제 #1
0
        protected void When(RegisteredDomainEvent domainEvent)
        {
            Id      = domainEvent.AggregateRootId;
            Version = domainEvent.Version;
            Name    = domainEvent.CustomerName;
            PIN     = domainEvent.CustomerPIN;

            Accounts = new AccountCollection();
            Accounts.Add(domainEvent.AccountId);
        }
예제 #2
0
 public virtual void Register(Guid accountId)
 {
     Accounts = new AccountCollection();
     Accounts.Add(accountId);
 }
예제 #3
0
 protected Customer()
 {
     Accounts = new AccountCollection();
 }