public async Task TestMissingApiKey() { var instance = new ManagedInstance { PossibleEndpoints = GetDefaultRestEndpointCollection() }; instance.Watch(); await Task.Delay(TimeSpan.FromSeconds(3)); Assert.IsTrue(instance.IsInState(ManagedInstance.State.Disconnected)); }
public async Task TestMissingEndpoints() { var instance = new ManagedInstance { ApiKey = "unittest" }; instance.Watch(); await Task.Delay(TimeSpan.FromSeconds(3)); Assert.IsTrue(instance.IsInState(ManagedInstance.State.Disconnected)); }