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...
Bromine asked 8/3, 2021 at 15:20
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...
Mewl asked 18/5, 2018 at 9:11
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...
Thready asked 9/1, 2019 at 10:22
3
Solved
I have the following ASP.NET Core integration test using a custom WebApplicationFactory
public class CustomWebApplicationFactory<TEntryPoint> : WebApplicationFactory<TEntryPoint>
w...
Implode asked 20/8, 2019 at 15:32
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...
Jephthah asked 14/6, 2017 at 12:59
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...
Kreit asked 26/1, 2017 at 17:34
1
© 2022 - 2024 — McMap. All rights reserved.