示例#1
0
        public void ExpectedProcedure()
        {
            var shoppingService = new ShoppingService();

            shoppingService.BeginTransaction(new CartTransaction {
                TransactionUri = "http://google.com/"
            });
            shoppingService.AddToCart(1, 2, 3);
        }
示例#2
0
        public void DoSomeStuff()
        {
            var shoppingService = new ShoppingService();
            var transaction     = new CartTransaction {
                TransactionUri = "http://google.com/"
            };

            shoppingService.BeginTransaction(transaction);
            shoppingService.AddToCart(1, 2, 3);
        }