/// <summary>
        /// Gets a grouped list of health checks, but doesn't actively check the status of each health check.
        /// </summary>
        /// <returns>Returns a collection of anonymous objects representing each group.</returns>
        public object GetAllHealthChecks()
        {
            var groups = _healthCheckResolver.HealthChecks
                         .GroupBy(x => x.Group)
                         .OrderBy(x => x.Key);
            var healthCheckGroups = new List <HealthCheckGroup>();

            foreach (var healthCheckGroup in groups)
            {
                var hcGroup = new HealthCheckGroup
                {
                    Name   = healthCheckGroup.Key,
                    Checks = healthCheckGroup
                             .OrderBy(x => x.Name)
                             .ToList()
                };
                healthCheckGroups.Add(hcGroup);
            }

            return(healthCheckGroups);
        }
        /// <summary>
        /// Gets a grouped list of health checks, but doesn't actively check the status of each health check.
        /// </summary>
        /// <returns>Returns a collection of anonymous objects representing each group.</returns>
        public object GetAllHealthChecks()
        {
            var groups = _healthCheckResolver.HealthChecks
                         .Where(x => _disabledCheckIds.Contains(x.Id) == false)
                         .GroupBy(x => x.Group)
                         .OrderBy(x => x.Key);
            var healthCheckGroups = new List <HealthCheckGroup>();

            foreach (var healthCheckGroup in groups)
            {
                var hcGroup = new HealthCheckGroup
                {
                    Name   = healthCheckGroup.Key,
                    Checks = healthCheckGroup
                             .OrderBy(x => x.Name)
                             .ToList()
                };
                healthCheckGroups.Add(hcGroup);
            }

            return(healthCheckGroups);
        }