protected override void PersistenceContext()
 {
     var customerOne = new CustomerBuilder().Build();
     _customerTwo = new CustomerBuilder().Build();
     _customerTwo.SetDeliveryAddress("delivery address");
     
     Save(customerOne, _customerTwo);
 }
Ejemplo n.º 2
0
 public Customer Build()
 {
     var customer = new Customer();
     foreach (var basketItem in _basketItems)
     {
         customer.AddProductToBasket(basketItem.Product, basketItem.Quantity);
     }
     customer.SetDeliveryAddress(_deliveryAddress);
     return customer;
 }