protected override void PersistenceContext()
 {
     var customerOne = new CustomerBuilder().Build();
     _customerTwo = new CustomerBuilder().Build();
     _customerTwo.SetDeliveryAddress("delivery address");
     
     Save(customerOne, _customerTwo);
 }
Exemplo n.º 2
0
 protected override void PersistenceContext()
 {
     _product = new ProductBuilder().Build();
     var customer = new CustomerBuilder()
         .WithProductInBasket(_product, ProductQuantity)
         .WithDeliveryAddress()
         .Build();
     _order = new OrderBuilder()
         .WithCustomer(customer)
         .Build();
     Save(_product, _order);
 }
        protected override void PersistenceContext()
        {
            _productOne = new ProductBuilder()
                .WithName(ProductOneName)
                .WithPrice(ProductOnePrice)
                .Build();
            _productTwo = new ProductBuilder()
                .WithName(ProductTwoName)
                .WithPrice(ProductTwoPrice)
                .Build();
            _customer = new CustomerBuilder()
                .WithProductInBasket(_productOne, ProductOneQuantity)
                .WithProductInBasket(_productTwo, ProductTwoQuantity)
                .Build();
            var anotherCustomer = new CustomerBuilder()
                .WithProductInBasket(_productOne, ProductOneQuantity)
                .Build();

            Save(_productOne, _productTwo, _customer, anotherCustomer);
        }