private string GetInput() { var input = string.Empty; do { input = _inputReader.ReadInput().ToUpper(); } while (!input.Equals(_endGameKey) && !_validator.IsInputValid(input)); return(input); }
public IEnumerable <Shape> GetShapesData() { IEnumerable <ShapeDto> shapeInputs = consoleInputRetriever.GetShapeInputs(); if (!inputValidator.IsInputValid(shapeInputs)) { return(null); } List <Shape> shapes = new List <Shape>(); foreach (var shapeInput in shapeInputs) { shapes.Add(ConstructShape(shapeInput)); } return(shapes); }
private bool FieldIsOutOfBounds(string field) { return(!_inputValidator.IsInputValid(field)); }