Hi,
I want to test my insert command before the data going to insert on database by using unit test.
i am new to the unit test.can any one help try to help me.
Thank you...
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bhuvanesh MohankumarPosted Apr 29, 2016, 7:56 AM
Good, you can create a repository layer & Data Access layer and mock the database objects, so it will unit test all codes.
Once it goes to data access layer then your mock will return the values you provided in setup.