Ejemplo n.º 1
0
        public static Account Load(Guid id, Guid customerId, TransactionCollection transactions)
        {
            Account account = new Account();

            account.Id            = id;
            account.CustomerId    = customerId;
            account._transactions = transactions;
            return(account);
        }
Ejemplo n.º 2
0
 public Account(Guid customerId)
 {
     Id            = Guid.NewGuid();
     _transactions = new TransactionCollection();
     CustomerId    = customerId;
 }