예제 #1
0
 public void SellComputerWithoutDVD_ROM()
 {
     _computerBuilder.CreateComputer();
     _computerBuilder.SetCPU();
     _computerBuilder.SetGraphicsCard();
     _computerBuilder.SetMotherboard();
     _computerBuilder.SetRAM();
     _computerBuilder.GetComputer();
 }
예제 #2
0
        public Computer Construct()
        {
            _builder.BuildMainBoard();
            _builder.BuildCpu();
            _builder.BuildMemory();
            _builder.BuildHardDisk();
            _builder.BuildKeyBoard();
            if (_builder.HasDisplayDevice)
            {
                _builder.BuildDisplayDevice();
            }
            _builder.BuildMouse();

            return(_builder.CreateComputer());
        }