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); } }
public void LoadDetailsFromWcf() { var myOrder = new RemoteOrder(1); ConsoleReporting.PrintOrderDetails(myOrder); }
public void DeferObjectCreationUntilAccess() { var myOrder = new LazyOrder(1); ConsoleReporting.PrintOrderDetails(myOrder); }
public void PopulateItselfFullyOnCreation() { var myOrder = new Order(1); ConsoleReporting.PrintOrderDetails(myOrder); }