public void MaxQueueItemsToPublishPerInterval_ReturnsConstructorValue_WithIntervalOverload(int maxConcurrent, TimeSpan pollingInterval)
        {
            var config   = new MonitoredJobQueueConfiguration(maxConcurrent, pollingInterval);
            var expected = config.PollingInterval.TotalSeconds * config.MaxConcurrentJobsToExecute * 2;

            Assert.InRange(config.MaxQueueItemsToPublishPerInterval, expected, 2 * expected);
        }
        public void MaxQueueItemsToPublishPerInterval_ReturnsConstructorValue_WithIntervalAndMaxToReadOverload(int maxConcurrent, TimeSpan pollingInterval, int maxQueueItemsToPublish)
        {
            var config = new MonitoredJobQueueConfiguration(maxConcurrent, pollingInterval, maxQueueItemsToPublish);

            Assert.Equal(maxQueueItemsToPublish, config.MaxQueueItemsToPublishPerInterval);
        }
        public void PollingInterval_ReturnsConstructorValue_WithIntervalOverload(int maxConcurrent, TimeSpan pollingInterval)
        {
            var config = new MonitoredJobQueueConfiguration(maxConcurrent, pollingInterval);

            Assert.Equal(pollingInterval, config.PollingInterval);
        }
        public void MaxConcurrentJobs_ReturnsConstructorValue(int maxConcurrent)
        {
            var config = new MonitoredJobQueueConfiguration(maxConcurrent);

            Assert.Equal(maxConcurrent, config.MaxConcurrentJobsToExecute);
        }
        public void PollingInterval_ReturnsDefaultPollingInterval(int maxConcurrent)
        {
            var config = new MonitoredJobQueueConfiguration(maxConcurrent);

            Assert.Equal(DurableJobQueueMonitor.DefaultPollingInterval, config.PollingInterval);
        }
        public void PollingInterval_ReturnsDefaultPollingInterval(int maxConcurrent)
        {
            var config = new MonitoredJobQueueConfiguration(maxConcurrent);

            Assert.Equal(DurableJobQueueMonitor.DefaultPollingInterval, config.PollingInterval);
        }
        public void PollingInterval_ReturnsConstructorValue_WithIntervalOverload(int maxConcurrent, TimeSpan pollingInterval)
        {
            var config = new MonitoredJobQueueConfiguration(maxConcurrent, pollingInterval);

            Assert.Equal(pollingInterval, config.PollingInterval);
        }
 public void MaxQueueItemsToPublishPerInterval_ReturnsConstructorValue_WithIntervalOverload(int maxConcurrent, TimeSpan pollingInterval)
 {
     var config = new MonitoredJobQueueConfiguration(maxConcurrent, pollingInterval);
     var expected = config.PollingInterval.TotalSeconds * config.MaxConcurrentJobsToExecute * 2;
     Assert.InRange(config.MaxQueueItemsToPublishPerInterval, expected, 2 * expected);
 }
        public void MaxQueueItemsToPublishPerInterval_ReturnsConstructorValue_WithIntervalAndMaxToReadOverload(int maxConcurrent, TimeSpan pollingInterval, int maxQueueItemsToPublish)
        {
            var config = new MonitoredJobQueueConfiguration(maxConcurrent, pollingInterval, maxQueueItemsToPublish);

            Assert.Equal(maxQueueItemsToPublish, config.MaxQueueItemsToPublishPerInterval);
        }
        public void MaxConcurrentJobs_ReturnsConstructorValue(int maxConcurrent)
        {
            var config = new MonitoredJobQueueConfiguration(maxConcurrent);

            Assert.Equal(maxConcurrent, config.MaxConcurrentJobsToExecute);
        }