Exemple #1
0
        public Computer Build(Order order, ComputerBuilder builder)
        {
            builder.SetCores(order.AmountOfCores);
            builder.SetCpuFrequency(order.CpuFrequency);
            builder.SetRam(order.AmountOfRam);
            builder.SetDriveType(order.DriveType);

            Console.WriteLine("Built Computer.");

            return(builder.GetComputer());
        }
        public Computer Build(Order order, ComputerBuilder builder)
        {
            builder.SetCores(order.AmountOfCores);
            builder.SetCpuFrequency(order.CpuFrequency);
            builder.SetRam(order.AmountOfRam);
            builder.SetDriveType(order.DriveType);

            Console.WriteLine("Built Computer.");

            return builder.GetComputer();
        }