I need to test a relatively large ASP.NET MVC based project. One of the modules is responsible for user details and to be more specific its orders. The workflow of the user registration requires in some point a set of free product IDs. They must be extracted from a table in the project actual database.
Table looks like this:
Numbers
| ID | Product | Status
_______________________
1 Some 1
2 Some 2
3 Some 1
I need only one single query, that will take first 10 records with Status equal to 1.
Here is pseudo:
SELECT TOP 10 *
FROM Numbers
WHERE Status = '1'
To me, it's seems overkill to use Entity Framework / ADO.NET or any complex ORM. At this point I did it manually, pausing the tests to this point, populate the required numbers and resuming test.
What simple solution can be applied here?
Thanks for your answers.