Example #1
0
        public void CanCreateCustomer()
        {
            IRepository repo = new HibernateRepo();

            Customer customer = new Customer("Sony", "Blr");
            repo.BeginTransaction();
            repo.Add<Customer>(customer);
            repo.SaveChanges();
            repo.CommitTransaction();
        }
Example #2
0
 public Order(Customer customer, ISalesTaxCalculator salesCalculator)
 {
     this._customer = customer;
     this._lineItems = new List<OrderLine>();
     this._salesCalculator = salesCalculator;
 }