private string getLowestCurrentlyHospitalizedWithDays(IEnumerable <CovidRecord> collection)
        {
            var    daysOutput = string.Empty;
            string lowestCurrentlyHospitalized;

            try
            {
                var covidRecords                = collection.ToArray();
                var firstDateOfPositiveTest     = this.getDateOfFirstPositiveTest();
                var lowestHospitalizedCurrently = this.covidStatistics
                                                  .FindRecordWithLowestCurrentHospitalizations(
                    firstDateOfPositiveTest).HospitalizedCurrently;

                var daysOccurred =
                    (from record in covidRecords
                     where record.HospitalizedCurrently == lowestHospitalizedCurrently
                     select record.Date)
                    .ToList();

                daysOutput = Format.GetListOfDaysWithOrdinals(daysOccurred);
                lowestCurrentlyHospitalized = Format.FormatIntegerAsFormattedString(lowestHospitalizedCurrently);
            }
            catch (Exception)
            {
                lowestCurrentlyHospitalized = Assets.NoPositiveData;
            }

            return(CovidDataLines.GetCovidLineForValueAndDaysOfMonth(Assets.LowestCurrentHospitalizationsLabel,
                                                                     lowestCurrentlyHospitalized, daysOutput));
        }
        private string getHighestTotalTestsWithDays(IEnumerable <CovidRecord> collection)
        {
            var covidRecords      = collection.ToArray();
            var highestTotalTests = this.covidStatistics.FindRecordWithHighestTotalTests().TotalTests;

            var daysOccurred =
                (from record in covidRecords where record.TotalTests == highestTotalTests select record.Date).ToList();

            var daysOutput = Format.GetListOfDaysWithOrdinals(daysOccurred);
            var highestTotalTestsFormatted = Format.FormatIntegerAsFormattedString(highestTotalTests);

            return(CovidDataLines.GetCovidLineForValueAndDaysOfMonth(Assets.HighestTotalTestsLabel,
                                                                     highestTotalTestsFormatted, daysOutput));
        }
        private string getHighestCurrentlyHospitalizedWithDays(IEnumerable <CovidRecord> collection)
        {
            var covidRecords = collection.ToArray();
            var highestHospitalizedCurrently = this.covidStatistics.FindRecordWithHighestCurrentHospitalizations()
                                               .HospitalizedCurrently;

            var daysOccurred =
                (from record in covidRecords
                 where record.HospitalizedCurrently == highestHospitalizedCurrently
                 select record.Date).ToList();

            var daysOutput = Format.GetListOfDaysWithOrdinals(daysOccurred);
            var highestPositivesFormatted = Format.FormatIntegerAsFormattedString(highestHospitalizedCurrently);

            return(CovidDataLines.GetCovidLineForValueAndDaysOfMonth(Assets.HighestCurrentHospitalizationsLabel,
                                                                     highestPositivesFormatted, daysOutput));
        }