public StorageScheduleMonitorTests() { _hostConfig = new JobHostConfiguration(); _hostConfig.HostId = TestHostId; _scheduleMonitor = new StorageScheduleMonitor(_hostConfig, new TestTraceWriter()); Cleanup(); }
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); }
public StorageScheduleMonitorTests() { _scheduleMonitor = CreateScheduleMonitor(TestHostId); Cleanup(); }