Exemple #1
0
        public void Assemble()
        {
            IMonitor   monitor   = CreateMonitor();
            IProcessor processor = CreateProcessor();
            IHardDisk  hardDisk  = CreateHardDisk();

            processor.PerformOperation();
            hardDisk.StoreData();
            monitor.Display();
        }
Exemple #2
0
        public void Assemble(ComputerFactory factory)
        {
            IMonitor   monitor   = factory.CreateMonitor();
            IProcessor processor = factory.CreateProcessor();
            IHardDisk  hardDisk  = factory.CreateHardDisk();

            processor.PerformOperation();
            hardDisk.StoreData();
            monitor.Display();
        }
Exemple #3
0
        public void AssembleMachine()
        {
            IProcessor processor = category.GetRam();
            IHardDisk  hardDisk  = category.GetHardDisk();
            IMonitor   monitor   = category.GetMonitor();

            processor.PerformOperation();
            hardDisk.StoreData();
            monitor.DisplayPicture();
        }
Exemple #4
0
        public void AssembleMachine()
        {
            IHardDisk disk = factory.createHarddisk();

            disk.StoreData();
            IMonitor monitor = factory.createMonitor();

            monitor.Display();
            IProcessor cpu = factory.createProcessor();

            cpu.PreformOperation();
        }
Exemple #5
0
        public void AssembleMachine()
        {
            IProcessor processor = category.GetRam();
            IHardDisk  hdd       = category.GetHardDisk();
            IMonitor   monitor   = category.GetMonitor();

            //use all three and create machine

            processor.PerformOperation();
            hdd.StoreData();
            monitor.DisplayPicture();
        }