I am working on dot net core application. And, I want to write unit test to test that the ForwardHeaderOptions are setup correctly. Please see below t ...
I am working on dot net core application. And, I want to write unit test to test that the ForwardHeaderOptions are setup correctly. Please see below t ...
I have a problem with integration test (made with WebApplicationFactory) that cannot parse back to JSON obtained response. I have seen some similar is ...
I am using the Microsoft.AspNetCore.TestHost to integration-test my ASP.NET Core web service application. This works, but I have a problem: If ther ...
Running my integration tests for some controllers, I get this exception: I've already checked this but not helpful Could not load type 'Context' fr ...
I am trying to implement integration testing for each API that i have developed in .Net core 3.1 and have followed this link to create test cases for ...
I have ASP.Net MVC application, one part of it is compiling razor views to string. The code is very similar to this example: https://long2know.com/201 ...
I have written some integration tests using Microsoft.AspNetCore.TestHost, But when I try to get a message as Invalid URI. I can create TestServer s ...
I have the following ASP.NET Core integration test using a custom WebApplicationFactory public class CustomWebApplicationFactory<TEntryPoint> ...
I am currently using xUnit to write integration tests and so fast I only attempted to write a single test for my AuthController to check if the authen ...
I'm using AspNetCore 2.2 Following (moreless) the docs here: https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-2.2 ...
I have a project with integration tests that use the Microsoft.AspNetCore.TestHost as test server. On my local development machine, when I run dotnet ...
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 ro ...
I recently started using TestServer class to self-host and bootstrap an Aspnet Core API to run Integration Tests without a dedicated running environme ...
I following steps in the suggested workarounds here, here and and here I added: and and The xunit.runner.json looks like and I am usin ...
I have been struggling many hours with this issue. My WebAPI App works fine on local machine and production server but fails during an integration tes ...
I have build a WebSocket web application in .net core by following this and this or this tutorials. Now I am trying to write some integration tests on ...
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 o ...
I am writing a test to get a token from identity server4 using Microsoft.AspNetCore.TestHost Then disco.Error comes up with the following error ...
I have setup a build server at the company I work for. This build server interactively works with Visual Studio Team Services. Building works great a ...
I have an ASP.Net Core application configured to issue and authenticate JWT bearer tokens. Clients are able to successfully retrieve bearer tokens and ...