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)); }
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)); }
public InputDependenciesFactory(IConsoleInformation consoleInformation) { this._consoleInformation = consoleInformation; }