Class FakeComponentFactory
IComponentFactory<TInputRecord> implementation for fake/mock console I/O used in unit tests. This factory creates instances that simulate console behavior without requiring a real terminal.
public class FakeComponentFactory : ComponentFactoryImpl<ConsoleKeyInfo>, IComponentFactory<ConsoleKeyInfo>, IComponentFactory
- Inheritance
-
FakeComponentFactory
- Implements
- Inherited Members
Constructors
- FakeComponentFactory(FakeInput?, IOutput?, ISizeMonitor?)
Creates a new FakeComponentFactory with optional output capture.
Methods
- CreateInput()
Create IInput<TInputRecord> class for the current driver implementation i.e. the class responsible for reading user input from the console.
- CreateInputProcessor(ConcurrentQueue<ConsoleKeyInfo>)
Creates the InputProcessorImpl<TInputRecord> class for the current driver implementation i.e. the class responsible for translating raw console input into Terminal.Gui common event Key and MouseEventArgs.
- CreateOutput()
Create the IOutput class for the current driver implementation i.e. the class responsible for rendering IOutputBuffer into the console.
- CreateSizeMonitor(IOutput, IOutputBuffer)
Creates ISizeMonitor class for the current driver implementation i.e. the class responsible for reporting the current size of the terminal.