예제 #1
0
        public static Account Load(Guid id, Guid customerId, TransactionCollection transactionCollection)
        {
            Account account = new Account();

            account.Id            = id;
            account.CustomerId    = customerId;
            account._transactions = transactionCollection;

            return(account);
        }
예제 #2
0
 public Account(Guid customerId)
 {
     CustomerId    = customerId;
     Id            = Guid.NewGuid();
     _transactions = new TransactionCollection();
 }