27 questions for “Testing ASP.NET Core Applications”

Found in 1 field. Select a question to see its full answer.

Information Technology

27 questions in 2 technologies

#QuestionTechnologyTopicLevel
1What is dependency injection, and how does ASP.NET Core's built-in DI container support it out of the box? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionBeginner
2How do you add XML output formatting support to an ASP.NET Core API alongside the default JSON formatter? ASP.NET Core › Content Negotiation & Output FormattersASP.NET CoreContent Negotiation & Output FormattersIntermediate
3How would you debug why a specific request isn't matching the route you expect it to, using ASP.NET Core's routing diagnostics? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
4How would you implement automated testing that verifies deprecated API versions still function correctly while newer versions are actively developed? ASP.NET Core › API VersioningASP.NET CoreAPI VersioningAdvanced
5How do you unit test that a specific API version's controller action behaves correctly, given the version-based routing? ASP.NET Core › API VersioningASP.NET CoreAPI VersioningIntermediate
6How do you use IHostEnvironment/IWebHostEnvironment to conditionally configure services based on the current environment? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
7How do you test that an API correctly returns different formats based on the Accept header using integration tests? ASP.NET Core › Content Negotiation & Output FormattersASP.NET CoreContent Negotiation & Output FormattersIntermediate
8What is the difference between constructor injection and using IServiceProvider directly to resolve dependencies imperatively (service location)? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionIntermediate
9How would you unit test a custom action filter's logic in isolation, without needing a full HTTP request pipeline? ASP.NET Core › FiltersASP.NET CoreFiltersIntermediate
10How would you write an integration test verifying that your health check endpoint correctly reports Unhealthy when a dependency is down? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksIntermediate