Monday, February 2, 2015

Moq Framework for unit testing Override method with SqlTransaction Parameter

Hello,


I have a derived class which overrides the base implementation and having SqlTransaction as parameter


Class SqlHelper


{


override Generate(SqlTransaction sqltran)


{


//some process


//Pass this to utility method for inserting record


}


}


Can some one point me how to mock SqlTransaction?


No comments:

Post a Comment