public Bank Insert() { Bank bank = BankBuilder.Default.Build(); Bank result = dao.Insert(bank); return(result); }
public virtual Account Account_Insert() { //Customer customer = ReadCustomer(); Account account = AccountBuilder.Default.Build(); account.Customer = new Customer() { Id = 1 }; accountDao.Insert(account); return(account); }
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); }