예제 #1
0
        public Bank Insert()
        {
            Bank bank   = BankBuilder.Default.Build();
            Bank result = dao.Insert(bank);

            return(result);
        }
예제 #2
0
        public virtual Account Account_Insert()
        {
            //Customer customer = ReadCustomer();
            Account account = AccountBuilder.Default.Build();

            account.Customer = new Customer()
            {
                Id = 1
            };

            accountDao.Insert(account);
            return(account);
        }
예제 #3
0
        public virtual Customer Customer_Insert()
        {
            Customer customer = CustomerBuilder.Default.Build();
            Account  account1 = AccountBuilder.Default.Build();
            Account  account2 = AccountBuilder.Default.Build();

            account1.Customer = customer;
            account2.Customer = customer;

            //customer.PrimaryAccount = account1;
            customer.Accounts.Add(account1);
            customer.Accounts.Add(account2);

            customerDao.Insert(customer);
            return(customer);
        }