Ejemplo n.º 1
0
 void ISelfPopulator.Populate()
 {
     OrderContainer orders = new OrderContainer
     {
         Name = ORDERS_NAME,
         Title = "Orders"
     };
     orders.AddTo(this);
 }
Ejemplo n.º 2
0
        void ISelfPopulator.Populate()
        {
            VariationSetContainer variationsSet = new VariationSetContainer
            {
                Name = VARIATION_CONTAINER_NAME,
                Title = "VariationsSet"
            };
            variationsSet.AddTo(this);

            ShoppingBasketContainer shoppingBaskets = new ShoppingBasketContainer
            {
                Name = SHOPPING_BASKETS_NAME,
                Title = "Shopping Baskets"
            };
            shoppingBaskets.AddTo(this);

            OrderContainer orders = new OrderContainer
            {
                Name = ORDERS_NAME,
                Title = "Orders"
            };
            orders.AddTo(this);

            DeliveryMethodContainer deliveryMethods = new DeliveryMethodContainer
            {
                Name = DELIVERY_METHODS_NAME,
                Title = "Delivery Methods"
            };
            deliveryMethods.AddTo(this);

            CheckoutPage checkoutPage = new CheckoutPage
            {
                Name = CHECKOUT_NAME,
                Title = "Checkout"
            };
            checkoutPage.AddTo(this);
        }