Esempio n. 1
0
        public override void RemoveStorageDrive(StorageProvider drive)
        {
            if (drive == null)
            {
                throw new ArgumentNullException("Drive to remove cannot be null.");
            }

            this.drives.Remove(drive);
        }
Esempio n. 2
0
        public override void AddStorageDrive(StorageProvider drive)
        {
            if (drive == null)
            {
                throw new ArgumentNullException("Drive to add cannot be null.");
            }

            this.drives.Add(drive);
        }
Esempio n. 3
0
 public Laptop(Cpu cpu, StorageProvider storageProvider, IMotherboard motherboard, LaptopBattery battery)
     : base(cpu, storageProvider, motherboard)
 {
     this.Battery = battery;
 }
Esempio n. 4
0
 public PersonalComputer(Cpu cpu, StorageProvider storageProvider, IMotherboard motherboard)
     : base(cpu, storageProvider, motherboard)
 {
 }
 public abstract void RemoveStorageDrive(StorageProvider drive);
 public abstract void AddStorageDrive(StorageProvider drive);
Esempio n. 7
0
 public Computer(Cpu cpu, StorageProvider storageProvider, IMotherboard motherboard)
 {
     this.Cpu             = cpu;
     this.Motherboard     = motherboard;
     this.storageProvider = storageProvider;
 }
Esempio n. 8
0
 public Server(Cpu cpu, StorageProvider storageProvider, IMotherboard motherboard)
     : base(cpu, storageProvider, motherboard)
 {
 }
Esempio n. 9
0
 public override void RemoveStorageDrive(StorageProvider drive)
 {
     throw new InvalidOperationException("Cannot remove from a hard drive.");
 }
Esempio n. 10
0
 public override void AddStorageDrive(StorageProvider drive)
 {
     throw new InvalidOperationException("Cannot add to a hard drive.");
 }