internal static ComputerManufacturer GetManufacturer(string manufacturerName)
        {
            ComputerManufacturer manufacturer = null;

            switch (manufacturerName)
            {
            case "hp":
                manufacturer = new Hp();
                break;

            case "dell":
                manufacturer = new Dell();
                break;

            case "lenovo":
                manufacturer = new Lenovo();
                break;

            default:
                throw new InvalidManufacturerException("Invalid manufacturer!");
            }

            return(manufacturer);
        }
 public AbstractComputerFactory(ComputerManufacturer manufacturer)
 {
     this.Manufacturer = manufacturer;
 }