W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
7 questions for “Integration & Unit Testing)”
Found in 1 field. Select a question to see its full answer.
Information Technology
7 questions in 2 technologies
#
Question
Technology
Topic
Level
1
How do you write an
integration
test verifying that your global exception handler produces the correct error response shape?
.NET › Global Exception Handling & Middleware
.NET
Global Exception Handling & Middleware
Intermediate
2
How would you
unit
test a service that depends on multiple injected interfaces without spinning up the full DI container?
.NET › Dependency Injection
.NET
Dependency Injection
Advanced
3
What is dependency injection, and how does ASP.NET Core's built-in DI container support it?
.NET › Dependency Injection
.NET
Dependency Injection
Beginner
4
How do you configure a GitHub Actions workflow to build, test, and publish a .NET application?
.NET › CI/CD, Publishing & Deployment
.NET
CI/CD, Publishing & Deployment
Intermediate
5
What is the difference between constructor injection and service location (using IServiceProvider directly to resolve dependencies)?
.NET › Dependency Injection
.NET
Dependency Injection
Intermediate
6
What is IHostEnvironment, and how do you use it to conditionally configure services based on the current environment?
.NET › Generic Host
.NET
Generic Host
Intermediate
7
How do you validate that an API's actual behavior matches its published OpenAPI specification, preventing documentation drift?
ASP.NET Core › API Documentation with Swagger/OpenAPI
ASP.NET Core
API Documentation with Swagger/OpenAPI
Intermediate