public StorageScheduleMonitorTests() { _hostConfig = new JobHostConfiguration(); _hostConfig.HostId = TestHostId; _scheduleMonitor = new StorageScheduleMonitor(_hostConfig); Cleanup(); }
public void TimerStatusDirectory_HostIdNull_Throws() { JobHostConfiguration config = new JobHostConfiguration(); StorageScheduleMonitor localScheduleMonitor = new StorageScheduleMonitor(config); CloudBlobDirectory directory = null; var ex = Assert.Throws<InvalidOperationException>(() => { directory = localScheduleMonitor.TimerStatusDirectory; }); Assert.Equal("Unable to determine host ID.", ex.Message); }