public void TestAverageEmptyCovidDataCollection()
        {
            // ReSharper disable once CollectionNeverUpdated.Local
            var covidCollection = new CovidDataCollection();
            var covidStatistics = new CovidDataStatistics(covidCollection);

            Assert.ThrowsException <InvalidOperationException>(() =>
                                                               covidStatistics.FindAverageTotalTestsSinceSpecifiedDate(this.defaultDate));
        }
        public void TestAverageOneItemCovidDataCollection()
        {
            var covidCollection = new CovidDataCollection
            {
                this.record1
            };
            var covidStatistics = new CovidDataStatistics(covidCollection);
            var result          = covidStatistics.FindAverageTotalTestsSinceSpecifiedDate(this.defaultDate);

            Assert.AreEqual(30, result);
        }
        public void TestOverallPositivityOneItemCovidDataCollection()
        {
            var covidCollection = new CovidDataCollection
            {
                this.record1
            };
            var covidStatistics     = new CovidDataStatistics(covidCollection);
            var positiveTestAverage = covidStatistics.FindAveragePositiveTestsSinceSpecifiedDate(this.defaultDate);
            var totalTestAverage    = covidStatistics.FindAverageTotalTestsSinceSpecifiedDate(this.defaultDate);
            var expected            = positiveTestAverage / totalTestAverage;
            var actual = covidStatistics.FindOverallPositivityRateSinceFirstPositiveTest();

            Assert.AreEqual(expected, actual, Delta);
        }