public void AutomatedOperatorDiscoveryShouldHandleAuthenticationResponse() { var response = _responses["authentication"]; var options = new DiscoveryOptions(); _restClient.QueueResponse(response); _restClient.QueueResponse(_responses["provider-metadata"]); var result = _discovery.StartAutomatedOperatorDiscovery(_config, REDIRECT_URL, options, null); Assert.IsNotNull(result); Assert.AreEqual(200, result.ResponseCode); Assert.IsNotNull(result.ResponseData); Assert.IsNotNull(result.ResponseData.response); Assert.IsNotNull(result.ResponseData.ttl); Assert.IsNotNull(result.ProviderMetadata); Assert.IsFalse(result.Cached); }