Testing WCF Chain Integration with a Test Database

Look for some tips on how to proceed here.

I am trying to do integration testing of wcf services that call other wcf services. I want to make sure that they are correctly configured among themselves. We are currently using spring.net and Nhibernate. I am not sure how to verify that the database is being updated without actually storing anything in the database.

I have msmq and wshttp services that I am trying to check here. I am familiar with transactions since we use them in spring, but I have no idea how to configure my tests to roll back a transaction in a service that is not tested directly with the integration test.

Currently, the only option I came up with is to use a test database and test data, but it seems like there should be a better solution than this.

+5
source share
2 answers

I decided to go with an application specific implementation. Basically, the creation of a test database and our application got into the test database based on some values ​​that are transferred to our service.

0
source

, , ( DAL), - Moq, , . wcf .

0

All Articles