Beispiel #1
0
        public AddLineResult AddLine(string inputLine)
        {
            if (!_parser.IsStringValid(inputLine))
            {
                AddLineToDictionary(_invalidInputs, inputLine);
                return(AddLineResult.Invalid);
            }

            var sortedInputLine = _parser.ParseString(inputLine);

            return(AddLineToDictionary(_validInputs, sortedInputLine));
        }