asp.net-core-testhost Questions

1

Solved

I am using the Microsoft.AspNetCore.TestHost to integration-test my ASP.NET Core web service application. var testServer = new TestServer( new WebHostBuilder() .UseStartup<Startup>() .UseC...

1

Solved

Question Is there a way to programmatically invoke the ASP.NET Core request pipeline from within my own application, given I have a HTTP verb, the route, headers and body payload? Background The...

3

Solved

I'm using AspNetCore 2.2 Following (moreless) the docs here: https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-2.2 I am using Autofac, my Startup class has the f...

3

Solved

I have the following ASP.NET Core integration test using a custom WebApplicationFactory public class CustomWebApplicationFactory<TEntryPoint> : WebApplicationFactory<TEntryPoint> w...

1

I am trying to dynamically load a .NET Core DLL containing an ASP.NET Core's Startup class. I then want to instantiate the Startup class and hand it over to the TestHost API, so I can start the sit...

1

Solved

I am writing a test to get a token from identity server4 using Microsoft.AspNetCore.TestHost var hostBuilder = new WebHostBuilder() .ConfigureServices(services => { services.AddIdentityServ...
1

© 2022 - 2024 — McMap. All rights reserved.