private static void SizeSelectDemo() { AbstractWAGFactory factory = new WidgetFactory(); IWidgetComponents widgetComponents = factory.CreateWidgetComponents(); ICreateSize create = factory.CreatSize(); AbstractWAGFactory gFactory = new GadgetFactory(); IGadgetComponents gadgetComponents = gFactory.CreateGadgetComponents(); ICreateSize createSize = gFactory.CreatSize(); Console.WriteLine(" Welcome to our WAG Corporation. We are in the business of: "); Console.WriteLine(" "); Console.WriteLine(create.SmallWidget); Console.WriteLine(create.MediumWidget); Console.WriteLine(create.LargeWidget); Console.WriteLine(create.SmallGadget); Console.WriteLine(create.MediumGadget); Console.WriteLine(create.LargeGadget); Console.WriteLine(" "); Console.WriteLine(" "); Console.WriteLine(" Below is a list of our Products: "); Console.WriteLine(" "); ProductList(); Console.WriteLine(" **The prices of these items are subject to change due to any custom or personal changes."); Console.WriteLine(" **All sales are final. *30 day Warranty. No refunds. "); SelectWagSize sws = new SelectWagSize(); sws.WagSelection(); Console.WriteLine(" "); Console.WriteLine("This concludes our Console Application of the WAG Corporation. I hope you enjoyed it!! Thank you for joining us today."); Console.ReadLine(); }
private static void AbstractWagDemo() { AbstractWAGFactory factory = new WidgetFactory(); IWidgetComponents widgetComponents = factory.CreateWidgetComponents(); ICreateSize create = factory.CreatSize(); Console.WriteLine(widgetComponents.GearParts); Console.WriteLine(widgetComponents.SpringParts); Console.WriteLine(widgetComponents.LeverParts); Console.WriteLine(create.SmallWidget); Console.WriteLine(create.MediumWidget); Console.WriteLine(create.LargeWidget); AbstractWAGFactory gFactory = new GadgetFactory(); IGadgetComponents gadgetComponents = gFactory.CreateGadgetComponents(); ICreateSize createSize = gFactory.CreatSize(); Console.WriteLine(gadgetComponents.Buttons); Console.WriteLine(gadgetComponents.Lights); Console.WriteLine(gadgetComponents.Switch); Console.WriteLine(gadgetComponents.Widgets); Console.WriteLine(createSize.SmallGadget); Console.WriteLine(createSize.MediumGadget); Console.WriteLine(createSize.LargeGadget); }