示例#1
0
 public void SellComputerWithoutDVD_ROM()
 {
     _computerBuilder.CreateComputer();
     _computerBuilder.SetCPU();
     _computerBuilder.SetGraphicsCard();
     _computerBuilder.SetMotherboard();
     _computerBuilder.SetRAM();
     _computerBuilder.GetComputer();
 }
示例#2
0
 public Computer AssembleComputer()
 {
     _ComputerBuilder.AddCPU();
     _ComputerBuilder.AddKeyboard();
     _ComputerBuilder.AddMonitor();
     _ComputerBuilder.AddMouse();
     return(_ComputerBuilder.GetComputer());
 }
        public Computer AssembleComputer()
        {
            builder.AddCPU();
            builder.AddCabinet();
            builder.AddMonitor();
            builder.AddKeyboard();
            builder.AddMouse();

            return(builder.GetComputer());
        }
 /// <summary>
 /// Coordena a construção de um computador
 /// </summary>
 /// <returns>Computer</returns>
 public Computer AssembleComputer()
 {
     computerBuilder.AddCabinet();
     computerBuilder.AddMotherBoard();
     computerBuilder.AddCPU();
     computerBuilder.AddKeyBoard();
     computerBuilder.AddMouse();
     computerBuilder.AddMonitor();
     return(computerBuilder.GetComputer());
 }
 public Computer GetComputer()
 {
     return(builder.GetComputer());
 }