public void Authority_No_Trailing_Slash()
        {
            _options.Authority = "http://authority.com";
            _options.ScopeName = "scope";
            _options.DelayLoadDiscoveryDocument = false;

            var handler = new DiscoveryEndpointHandler();
            _options.DiscoveryHttpHandler = handler;

            Action act = () => PipelineFactory.CreateClient(_options);

            act.ShouldNotThrow();
            handler.Endpoint.Should().Be("http://authority.com/.well-known/openid-configuration");
        }
        public void Authority_Get_Introspection_Endpoint()
        {
            _options.Authority = "http://authority.com/";
            _options.ScopeName = "scope";
            _options.DelayLoadDiscoveryDocument = false;

            var handler = new DiscoveryEndpointHandler();
            _options.DiscoveryHttpHandler = handler;

            Action act = () => PipelineFactory.CreateClient(_options);

            act.ShouldNotThrow();
            _options.IntrospectionEndpoint.Should().Be("http://introspection_endpoint");
        }