public void MakeOrder(HardDisc hardDisc, MotherBoard motherBoard, Processor processor, Screen screen) { builder.BuildHardDisk(storage.SearchHardDisc(hardDisc)) .BuildMotherBoard(storage.SearchMotherBoard(motherBoard)) .BuildProcessor(storage.SearchProcessor(processor)) .BuildScreen(storage.SearchScreen(screen)); }
public Computer Construct() { _builder.BuildMainBoard(); _builder.BuildCpu(); _builder.BuildMemory(); _builder.BuildHardDisk(); _builder.BuildKeyBoard(); if (_builder.HasDisplayDevice) { _builder.BuildDisplayDevice(); } _builder.BuildMouse(); return(_builder.CreateComputer()); }