コード例 #1
0
        public void EmptyTaskWorkerConfiguration2()
        {
            ITaskWorkersConfiguration configuration = AppConfigConfigurationUnitTests.GetTaskWorkerConfiguration("Empty2");

            Assert.IsNotNull(configuration);

            Assert.IsNull(configuration[typeof(FakeTask)]);
        }
コード例 #2
0
        public void TaskWorker()
        {
            ITaskWorkersConfiguration configuration = AppConfigConfigurationUnitTests.GetTaskWorkerConfiguration("TaskWorker");

            Assert.AreEqual(typeof(FakeTaskWorker), configuration[typeof(FakeTask)].WorkerType);
            Assert.AreEqual(typeof(FakeTaskWorker), configuration[typeof(FakePollingQueueTask)].WorkerType);

            Assert.IsTrue(configuration[typeof(FakeTask)].HasTaskJobSettings);
            Assert.IsFalse(configuration[typeof(FakePollingQueueTask)].HasTaskJobSettings);
        }
コード例 #3
0
 public void TaskWorkerDuplicateTask()
 {
     AppConfigConfigurationUnitTests.GetTaskWorkerConfiguration("DuplicateTask");
 }
コード例 #4
0
 public void TaskWorkerWorkerTypeNoParameterlessConstructor()
 {
     AppConfigConfigurationUnitTests.GetTaskWorkerConfiguration("WorkerTypeNoParameterlessConstructor");
 }
コード例 #5
0
 public void TaskWorkerInvalidWorkerType()
 {
     AppConfigConfigurationUnitTests.GetTaskWorkerConfiguration("InvalidWorkerType");
 }
コード例 #6
0
 public void TaskWorkerEmptyWorkerType()
 {
     AppConfigConfigurationUnitTests.GetTaskWorkerConfiguration("EmptyWorkerType");
 }
コード例 #7
0
 public void TaskWorkerNoTaskType()
 {
     AppConfigConfigurationUnitTests.GetTaskWorkerConfiguration("NoTaskType");
 }