public void ClearDiscoveryCacheShouldEmptyCacheWithEmptyArguments() { SetupWithCache(); var response = _responses["authentication"]; var options = new DiscoveryOptions(); for (int i = 0; i < 5; i++) { _restClient.QueueResponse(response); _restClient.QueueResponse(_responses["provider-metadata"]); var result = _discovery.CompleteSelectedOperatorDiscovery(_config, REDIRECT_URL, "90" + i, "01"); } _discovery.ClearDiscoveryCacheAsync(null, null); Assert.IsTrue(_cache.IsEmpty); }