public ShoppingCart(IItemPage itemPage, ISignInPage signInPage, ICheckoutPage checkoutPage, IShippingAddressPage shippingAddressPage)
 {
     _itemPage            = itemPage;
     _signInPage          = signInPage;
     _checkoutPage        = checkoutPage;
     _shippingAddressPage = shippingAddressPage;
 }
Exemplo n.º 2
0
 public ShoppingCart(IItemPage itemPage, ISignInPage signInPage, ICheckoutPage checkoutPage, IShippingAddressPage shippingAddressPage)
 {
     this.itemPage            = itemPage;
     this.signInPage          = signInPage;
     this.checkoutPage        = checkoutPage;
     this.shippingAddressPage = shippingAddressPage;
 }
Exemplo n.º 3
0
 public ShoppingCart(IItemPage itemPage, ISignInPage signInPage, ICheckoutPage checkoutPage, IShippingAddressPage shippingAddressPage)
 {
     this.itemPage = itemPage;
     this.signInPage = signInPage;
     this.checkoutPage = checkoutPage;
     this.shippingAddressPage = shippingAddressPage;
 }
Exemplo n.º 4
0
        public CheckoutViewModel(ICheckoutPage view)
        {
            this.view     = view;
            CheckoutItems = new ObservableCollection <OrderDetailsViewModel> ();
            TotalPrice    = 0;

            PopulateOrders();
        }
Exemplo n.º 5
0
		public CheckoutViewModel (ICheckoutPage view)
		{
			this.view = view;
			CheckoutItems = new ObservableCollection<OrderDetailsViewModel> ();
			TotalPrice = 0;

			PopulateOrders ();
		}
 public static void AssertSubtotal(this ICheckoutPage checkoutPage, double expectedSubtotal)
 {
     Assert.AreEqual(expectedSubtotal, checkoutPage.GetTotalPrice());
 }