public void CanCreateCustomer() { IRepository repo = new HibernateRepo(); Customer customer = new Customer("Sony", "Blr"); repo.BeginTransaction(); repo.Add<Customer>(customer); repo.SaveChanges(); repo.CommitTransaction(); }
public Order(Customer customer, ISalesTaxCalculator salesCalculator) { this._customer = customer; this._lineItems = new List<OrderLine>(); this._salesCalculator = salesCalculator; }