public Bicycle Construct(IBicycleBuilder builder, string colour, int height) { // Start Process and Notify user Console.WriteLine("We have sarted process for Bicycle manufacturing"); // Follow the process and set attributes given builder.SetFrame(); builder.SetGears(); builder.SetColour(colour); builder.SetHeight(height); builder.PutTires(); builder.PutAccessaries(); Bicycle bicycle = builder.GetBicycle(); // Coordinate with other departments/inventories sellDepartment.GenerateInvoice(bicycle); // End Process and Notify user Console.WriteLine("{0} is ready for your disposal.\n ** Happy Riding ! **", bicycle.GetType()); return(bicycle); }
public KidsBicycleBuilder() { bicycle = new Bicycle(); bicycle.BicycleType = "Kids Bicycle"; }