public void GetInfo(IComputerFactory computerFactory)
        {
            IMainBoard mainBoard = computerFactory.CreateMainBoard();
            IProcesor  procesor  = computerFactory.CreateProcessor();

            Console.WriteLine(mainBoard.GetDescription());
            Console.WriteLine(mainBoard.GetProcessorType(procesor));
        }
Esempio n. 2
0
        public void ClientMethod(IComputerFactory factory)
        {
            IMainboard mainboard = factory.CreateMainboard();
            IProcessor processor = factory.CreateProcessor();

            Console.WriteLine(processor.ShowProcessor());
            Console.WriteLine(processor.ShowProcessorStation(mainboard));
        }
Esempio n. 3
0
        public void ClientMethod(IComputerFactory factory)
        {
            IMainboard mainboard = factory.CreateMainboard();
            IProcessor processor = factory.CreateProcessor();

            Console.WriteLine(processor.ShowBatteryVolume());
            Console.WriteLine(processor.ShowBatteryChargeLevel(mainboard));
        }