コード例 #1
0
ファイル: Customer.cs プロジェクト: x3nx1a/dotnet-new-caju
        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
ファイル: Customer.cs プロジェクト: x3nx1a/dotnet-new-caju
 public virtual void Register(Guid accountId)
 {
     Accounts = new AccountCollection();
     Accounts.Add(accountId);
 }
コード例 #3
0
ファイル: Customer.cs プロジェクト: x3nx1a/dotnet-new-caju
 protected Customer()
 {
     Accounts = new AccountCollection();
 }