Class AdvertisedBehaviorTests
- Namespace
- ProjectTemplate.Web.Tests
- Assembly
- ProjectTemplate.Web.Tests.dll
Provides integration tests for v1.0 advertised runtime behaviors that consumers rely on.
public sealed class AdvertisedBehaviorTests
- Inheritance
-
AdvertisedBehaviorTests
- Inherited Members
Methods
ApiStyleMissingEndpoint_ReturnsProblemDetailsShape()
Verifies that API-style missing endpoints return Problem Details instead of the browser error page.
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/AdvertisedBehaviorTests.cs", 17)]
public Task ApiStyleMissingEndpoint_ReturnsProblemDetailsShape()
Returns
- Task
A task that represents the asynchronous test operation.
BrowserStyleMissingEndpoint_ReturnsErrorPage()
Verifies that browser-oriented missing endpoints use the browser error page instead of Problem Details.
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/AdvertisedBehaviorTests.cs", 53)]
public Task BrowserStyleMissingEndpoint_ReturnsErrorPage()
Returns
- Task
A task that represents the asynchronous test operation.
ForwardedHeaders_AreAppliedForConfiguredProxyLikeRequest()
Verifies that forwarded headers are honored for a proxy-like request from a configured known proxy.
[Fact("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/AdvertisedBehaviorTests.cs", 76)]
public Task ForwardedHeaders_AreAppliedForConfiguredProxyLikeRequest()
Returns
- Task
A task that represents the asynchronous test operation.