static void Main() { Console.ForegroundColor = ConsoleColor.Cyan; try { var shop = new Shop(); shop .Construct(new ScooterBuilder()) .Construct(new MotorCycleBuilder()) .Construct(new CarBuilder()); } catch (Exception error) { Console.WriteLine("\n\nError occured at BuildVehicles::Main(). Message: {0}", error.Message); } Console.WriteLine("\n\nPress any key ..."); Console.ReadKey(); }
public void When_Scooter_IsBuild() { var shop = new Shop(); shop.Construct(new ScooterBuilder()); }
public void When_MotorCycle_IsBuild() { var shop = new Shop(); shop.Construct(new MotorCycleBuilder()); }
public void When_Car1_IsBuild() { var shop = new Shop(); shop.Construct(new CarBuilder()); }