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

            Console.WriteLine(mainBoard.GetDescription());
            Console.WriteLine(mainBoard.GetProcessorType(procesor));
        }
예제 #2
0
 public string GetProcessorType(IProcesor processor)
 {
     return($"Main Board with {processor.GetDescription()}");
 }