Пример #1
0
        public IReadKeyResultWrapper ReadKeyWithOptions()
        {
            ConsoleKey key        = Console.ReadKey().Key;
            var        readResult = new ReadKeyResult(key);

            return(new ReadKeyResultWrapper(readResult, this));
        }
Пример #2
0
 internal ReadKeyResultWrapper(ReadKeyResult readResult, Consolefy fluentConsole)
 {
     _possibleOutcomes = new List <PossibleReadKeyOutcome>();
     _readResult       = readResult;
     _fluentConsole    = fluentConsole;
 }