Exemple #1
0
        public void TestFinaliseOrderWithoutPurchaseProvider_NullReferenceException()
        {
            var orderFactory = new StandardOrderFactory();
            var order        = orderFactory.CreateOrder();

            var cart = new ShoppingCart(order, null);

            cart.Finalize();
        }
Exemple #2
0
        public void TestFinaliseOrderWithSwedishtPurchaseProvider_NullReferenceException()
        {
            var orderFactory = new StandardOrderFactory();
            var order        = orderFactory.CreateOrder();

            var purchaseProviderFactory = new SwedishPurchaseProviderFactory();

            var cart = new ShoppingCart(order, purchaseProviderFactory);

            var label = cart.Finalize();

            Assert.IsNotNull(label);
        }