예제 #1
0
        public void DeferObjectCreationUntilAccess()
        {
            var myOrder = new OrderProxy(1);

            ConsoleReporting.PrintOrderDetails(myOrder);

            Console.WriteLine("Again: " + myOrder.Customer.Name);
            foreach (var item in myOrder.Items)
            {
                Console.WriteLine("Item: " + item.Name);
            }
        }
예제 #2
0
        public void LoadDetailsFromWcf()
        {
            var myOrder = new RemoteOrder(1);

            ConsoleReporting.PrintOrderDetails(myOrder);
        }
예제 #3
0
        public void DeferObjectCreationUntilAccess()
        {
            var myOrder = new LazyOrder(1);

            ConsoleReporting.PrintOrderDetails(myOrder);
        }
예제 #4
0
        public void PopulateItselfFullyOnCreation()
        {
            var myOrder = new Order(1);

            ConsoleReporting.PrintOrderDetails(myOrder);
        }