예제 #1
0
        public void TestGetJobCountReturnCorrectResult()
        {
            // Arrange
            _schedulerCore.CreateJob("TestJob1", string.Empty, typeof(NoOpJob), new Dictionary <string, object>(), string.Empty);
            _schedulerCore.CreateJob("TestJob2", string.Empty, typeof(NoOpJob), new Dictionary <string, object>(), string.Empty);

            // Act
            var result = _analytics.GetJobCount();

            // Assert
            Assert.Equal(2, result);
        }
예제 #2
0
        public int GetJobCount()
        {
            Logger.Debug("Entered AnalyticsController.GetJobCount().");

            return(_analytics.GetJobCount());
        }