Ejemplo n.º 1
0
        public InputPositionCalculator(IReadOnlyInputBuffer buffer, int topRow, IConsoleInformation consoleInformation)
        {
            this.ValidateInparameters(buffer, topRow);

            this._buffer             = buffer;
            this._topRow             = topRow;
            this._consoleInformation = consoleInformation
                                       .If().Null.Throw().Null(nameof(consoleInformation));
        }
Ejemplo n.º 2
0
        public CursorInformation(IReadOnlyInputBuffer buffer, int topRow, IConsoleInformation consoleInformation)
        {
            this.ValidateInparameters(buffer, topRow);

            this._buffer             = buffer;
            this.TopRow              = topRow;
            this.FirstColumn         = this._buffer.FirstColumnIndex;
            this._consoleInformation = consoleInformation.If().Null.Throw().Null(nameof(consoleInformation));
        }
Ejemplo n.º 3
0
 public InputDependenciesFactory(IConsoleInformation consoleInformation)
 {
     this._consoleInformation = consoleInformation;
 }