public StorageScheduleMonitorTests()
        {
            _hostConfig        = new JobHostConfiguration();
            _hostConfig.HostId = TestHostId;
            _scheduleMonitor   = new StorageScheduleMonitor(_hostConfig, new TestTraceWriter());

            Cleanup();
        }
Exemplo n.º 2
0
        public void TimerStatusDirectory_HostIdNull_Throws()
        {
            StorageScheduleMonitor localScheduleMonitor = CreateScheduleMonitor(null);

            CloudBlobDirectory directory = null;
            var ex = Assert.Throws <InvalidOperationException>(() =>
            {
                directory = localScheduleMonitor.TimerStatusDirectory;
            });

            Assert.Equal("Unable to determine host ID.", ex.Message);
        }
        public void TimerStatusDirectory_HostIdNull_Throws()
        {
            JobHostConfiguration   config = new JobHostConfiguration();
            StorageScheduleMonitor localScheduleMonitor = new StorageScheduleMonitor(config, new TestTraceWriter());

            CloudBlobDirectory directory = null;
            var ex = Assert.Throws <InvalidOperationException>(() =>
            {
                directory = localScheduleMonitor.TimerStatusDirectory;
            });

            Assert.Equal("Unable to determine host ID.", ex.Message);
        }
Exemplo n.º 4
0
        public StorageScheduleMonitorTests()
        {
            _scheduleMonitor = CreateScheduleMonitor(TestHostId);

            Cleanup();
        }