public async Task Metric_ZDeleteAsync_Success()
        {
            // Act
            await metricRepository.DeleteAsync(metric);

            // Assert
            var readResult = await metricRepository.ReadAsync(metric.Id);

            Assert.That(readResult, Is.Null);
        }
        public async Task OneTimeSetup()
        {
            var hourRepo = new HourRepository(ConnectionFactorySetup.ConnectionFactory);

            hour = await hourRepo.CreateAsync(new Hour { HourTimeStamp = DateTime.Now });

            metricRepository = new MetricRepository(ConnectionFactorySetup.ConnectionFactory);
            metric           = await metricRepository.CreateAsync(new Metric { HourId = hour.Id, MetricType = MetricType.AgentUptime });

            metric = await metricRepository.ReadAsync(metric.Id);

            metric.MetricType = MetricType.WebUptime;
            await metricRepository.UpdateAsync(metric);
        }