예제 #1
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());
 }