public void WriteOutput(string searchString, ICurrentRoadStatus currentRoadStatus)
        {
            if (currentRoadStatus == null)
            {
                throw new ArgumentNullException(nameof(currentRoadStatus));
            }

            textWriter.WriteLine(SuccessMessageLine1, currentRoadStatus.DisplayName);
            textWriter.WriteLine(SuccessMessageLine2, currentRoadStatus.StatusSeverity);
            textWriter.WriteLine(SuccessMessageLine3, currentRoadStatus.StatusSeverityDescription);
        }
Beispiel #2
0
        public void WriteOutput(string searchString, ICurrentRoadStatus currentRoadStatus)
        {
            if (searchString == null)
            {
                throw new ArgumentNullException(nameof(currentRoadStatus));
            }

            if (searchString == String.Empty)
            {
                throw new ArgumentException("Parameter cannot be empty.", nameof(currentRoadStatus));
            }
            textWriter.WriteLine(NotFoundMessage, searchString);
        }
Beispiel #3
0
 public void WriteOutput(string searchString, ICurrentRoadStatus currentRoadStatus)
 {
     textWriter.WriteLine(FailedMessage);
 }