Example #1
0
        public static Account LoadFromDetails(Guid id, Guid customerId, TransactionCollection transactions)
        {
            Account account = new Account();

            account.Id           = id;
            account.CustomerId   = customerId;
            account.Transactions = transactions;
            return(account);
        }
Example #2
0
 public Account(Guid customerId)
 {
     Id           = Guid.NewGuid();
     CustomerId   = customerId;
     Transactions = new TransactionCollection();
 }