File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/ArbitraryApp/Server.IntegrationTests/Helpers Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1616namespace ArbitraryApp . Server . IntegrationTests . Helpers ;
1717
1818/// <summary>
19+ /// WebApplicationFactory<Program> is used to create an
20+ /// in-memory TestServer for the integration tests
21+ ///
22+ /// Entry point (generic type argument) is Program.cs
23+ /// so that the test server will be set up similar as in production scenario
24+ ///
1925/// see http://www.tiernok.com/posts/2021/mocking-oidc-logins-for-integration-tests/
2026/// </summary>
2127public class CustomWebApplicationFactory : WebApplicationFactory < Program >
@@ -39,7 +45,7 @@ public HttpClient CreateLoggedInClient<T>(
3945 string ? role )
4046 where T : ImpersonatedAuthHandler
4147 {
42- // set base address to HTTPS
48+ // Enforce HTTPS in integration tests
4349 options . BaseAddress = new Uri ( "https://localhost" ) ;
4450 return CreateLoggedInClient < T > ( options , list =>
4551 {
You can’t perform that action at this time.
0 commit comments