Exemplo n.º 1
0
            public void DoSomeStuff()
            {
                var shoppingService = new ShoppingService();

                shoppingService.AddToCart(new CartTransaction {
                    TransactionUri = "http://www.google.com"
                }, 1, 2, 3);
            }
Exemplo n.º 2
0
        public void ExpectedProcedure()
        {
            var shoppingService = new ShoppingService();

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

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