chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
Hi !!

We use Microsoft Enterprise Library Data Access block. We want to mock Insert and Update stored procedure using Type Mock. Can someone provide a simple example for this?

I haven't found any article etc for the same. Is this something which doesn't have any value in Unit Test?

Thanks.
asked by love_luv (1.7k points)

2 Answers

0 votes
Hi!

I'm not familiarized with the Microsoft Enterprise Library Data Access Application Block but I usually mock SqlClient classes when testing my database access code and mock my database access code when testing code that uses the database access code.

Can you sow us what you are trying to test/mock?
answered by paulo.morgado (11k points)
0 votes
.Net Unit testing developers who have incorporated .Net unit testing and Test Driven Development into their development process know the advantages .Net Unit testing has:
improve the code quality
reduce time to market.
cut development costs


.Net unit testing and Test Driven Development are Agile methods who are part of XP (Extreme programming)
answered by Moranbd (140 points)
...