Detailed integration tests

I have a WCF service that accesses a database and adds data to it. Now I want to perform some integration and / or system tests (automated).

How should I do it?

I need to access the database, load the initial data, call the service, and then check if the expected data was actually loaded into the table.

Is there any strategy for implementation that you would recommend?

I use WCF, Entity Framework, SQL Server, MSTests.

+3
source share
1 answer

If you don't mind making your test project depend on the Entity Framework, here's how I could do it.

  • EF , (), .
  • WCF .
  • . EF .
  • .
  • , Assert (s).
  • .

/ , SQLite . EF , " " SQL, SQLite. , /dev DB .

3 6 //, MSTest. , , , , , , .

+1

All Articles