Skip to content

Commit 813a878

Browse files
committed
minor improvements
1 parent 59a7959 commit 813a878

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ArbitraryApp/Server.IntegrationTests/Helpers/CustomWebApplicationFactory.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
namespace 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>
2127
public 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
{

0 commit comments

Comments
 (0)