public void Construct(IComputerBuilder computerBuilder) { computerBuilder.BuildCase(); computerBuilder.BuildMotherboard(); computerBuilder.BuildVideoCard(); computerBuilder.BuildSoundCard(); computerBuilder.BuildPowerSupply(); computerBuilder.BuildCPU(); computerBuilder.BuildRAM(); computerBuilder.BuildHardDrive(); computerBuilder.BuildOpticalDrive(); computerBuilder.BuildCoolingDevice(); computerBuilder.BuildCables(); computerBuilder.BuildMonitor(); computerBuilder.BuildKeyboard(); computerBuilder.BuildMouse(); computerBuilder.BuildOS(); computerBuilder.BuildOffice(); }
public Computer BuildComputer(IComputerBuilder b) { b.BuildComputer(); b.BuildOS(); return(b.GetProduct()); }