To avoid testing against the actual database, one might use a _________ database in integration testing.
- Mock
- In-memory
- NoSQL
- Distributed
To prevent integration tests from impacting the actual database, an in-memory database is often used. It simulates database behavior but operates entirely in memory, making tests faster and isolated. It's a common practice in ASP.NET Core testing.
Loading...
Related Quiz
- While setting up an ASP.NET Core development environment on macOS, what would be the preferred installation method for the .NET SDK?
- After a user logs into your application, you want to display a personalized greeting like "Welcome, [Username]!". How can you fetch the username of the currently logged-in user in ASP.NET Core?
- In ASP.NET Core, if you want to serve static files like images, CSS, and JavaScript, you need to add the _________ middleware.
- You are developing an e-commerce site where user's cart information needs to be preserved across sessions even if they log out. How can you achieve this in ASP.NET Core?
- When creating a new ASP.NET Core project, what does the "API" template primarily configure the project for?