public void CreateOrderTest()
 {
     //Arrange
       var target = new CommerceProvider();
       var shoppingCart = CreateTestCartWithItem();
       //Act
       var actual = target.CreateOrder( shoppingCart );
       //SelfAsserting
       _Context.Orders.Single( n => n.Id == actual.Id );
 }
 public ShoppingCart CreateTestCart()
 {
     var target = new CommerceProvider();
       var contact = TestData.CreateNewContact( "Tony", "Danza" );
       var cart = target.CreateCart( contact );
       var result = _Context.ShoppingCarts.Single( n => n.Id == cart.Id );
       return result;
 }
 public ShoppingCart CreateTestCartWithItem()
 {
     var target = new CommerceProvider();
       var productOffer = _Context.ProductOffers.First();
       var shoppingCart = CreateTestCart();
       target.AddItemToCart( productOffer, shoppingCart);
       var result = _Context.ShoppingCarts.Single( n => n.Id == shoppingCart.Id );
       return result;
 }