public void Full() { _builder.BuildBody(); _builder.BuildVideoCard(); _builder.BuildMainCard(); _builder.BuildAudioCard(); _builder.BuildNetworkCard(); _builder.BuildHDD(); _builder.BuildSSD(); _builder.BuildMouse(); _builder.BuildKeyboard(); }
public Computer Construct() { _builder.BuildMainBoard(); _builder.BuildCpu(); _builder.BuildMemory(); _builder.BuildHardDisk(); _builder.BuildKeyBoard(); if (_builder.HasDisplayDevice) { _builder.BuildDisplayDevice(); } _builder.BuildMouse(); return(_builder.CreateComputer()); }
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(); }