public void GetInfo(IComputerFactory computerFactory) { IMainBoard mainBoard = computerFactory.CreateMainBoard(); IProcesor procesor = computerFactory.CreateProcessor(); Console.WriteLine(mainBoard.GetDescription()); Console.WriteLine(mainBoard.GetProcessorType(procesor)); }
public string GetProcessorType(IProcesor processor) { return($"Main Board with {processor.GetDescription()}"); }