public AuthorizeEndpointTestBase()
 {
     _mockPipeline = new MockAuthorizationPipeline(Clients, Scopes, Users);
     _server = TestServer.Create(null, _mockPipeline.Configure, _mockPipeline.ConfigureServices);
     _browser = new Browser(_server.CreateHandler());
     _client = new HttpClient(_browser);
 }
Exemplo n.º 2
0
 protected IntegrationTestBase()
 {
     ServerUrl = new Uri("http://localhost");
     _runningServer = TestServer.Create(Configure, ConfigureServices);
     ClientConfiguration = new ClientConfiguration();
     HttpMessageHandler handler = _runningServer.CreateHandler();
     ClientConfiguration.HttpMessageHandler = handler;
 }
        public ClientCredentialsClient()
        {
            var server = new TestServer(TestServer.CreateBuilder()
                                .UseStartup<Startup>());

            _handler = server.CreateHandler();
            _client = server.CreateClient();
        }
        public IntrospectionTests()
        {
            var server = new TestServer(TestServer.CreateBuilder()
                                .UseStartup<Startup>());

            _handler = server.CreateHandler();
            _client = server.CreateClient();
        }
        public UserInfoEndpointClient()
        {
            var server = new TestServer(TestServer.CreateBuilder()
                                .UseStartup<Startup>());

            _handler = server.CreateHandler();
            _client = server.CreateClient();
        }
        public ResourceOwnerClient()
        {
            var server = new TestServer(TestServer.CreateBuilder()
                                .UseStartup<Startup>());

            _handler = server.CreateHandler();
            _client = server.CreateClient();
        }