private string ResolveAvailabilityTestInterval(string testIntervalSpec)
        {
            int minuteInterval = AvailabilityTestInterval.Parse(testIntervalSpec);

            string cronSpec = AvailabilityTestInterval.CreateCronIntervalSpecWithRandomOffset(minuteInterval);

            return(cronSpec);
        }
        public string Resolve(string name)
        {
            // If this is a Availability Test Interval specification (has the right prefix), then resolve it:
            if (AvailabilityTestInterval.IsSpecification(name))
            {
                return(ResolveAvailabilityTestInterval(name));
            }

            // If we have a default ame resolver, use it:
            if (_defaultNameResolver != null)
            {
                return(_defaultNameResolver.Resolve(name));
            }

            // Do nothing:
            return(name);
        }