Example #1
0
        public void DoSomeStuff()
        {
            var shoppingService = new ShoppingService();
            var transaction     = new CartTransaction {
                TransactionUri = "http://google.com/"
            };

            shoppingService.BeginTransaction(transaction);
            shoppingService.AddToCart(1, 2, 3);
        }
Example #2
0
 public void AddToCart(CartTransaction transaction, int cartId, int itemId, int quantity)
 {
     //add an item to the cart
 }
Example #3
0
 public void BeginTransaction(CartTransaction cartTransaction)
 {
     _cartTransaction = cartTransaction;
 }