public void NHibernateCriteriaSpikesSetup() { Customer c1 = Om.CreateCustomerWithOneAddress(); Customer c2 = Om.CreateCustomerWithOneAddress(); c2.AddAddress(Om.CreateAddress("ME5 8HU")); Customer c3 = Om.CreateCustomer(); c3.Name = "Mervyn Ramos"; Customer c4 = Om.CreateCustomer(); c4.ShortCode = "009"; _customersInDb = new List <Customer>(); _customersInDb.AddRange(new[] { c1, c2, c3, c4 }); Nh.InsertIntoDb(_customersInDb); }
public static Guid InsertCustomerWithAddress() { return(Insert(Om.CreateCustomerWithOneAddress())); }