Write Mock Unit Tests for SQL Commands using MSTest and MOQ Framework - Repository Pattern
£20-100 GBP
Selesai
Disiarkan lebih dari 9 tahun yang lalu
£20-100 GBP
Dibayar semasa penghantaran
The current .NET project uses SQL Commands to perform ExecuteNonQuery, ExecuteScalar, ExecuteReader using Stored Procedures.
It does not use the Entity Framework.
I require Mock tests to be written for all these SQL command types (using the MOQ framework and MSTEST) so that they use a Mockable interface IDbConnection, IDataReader, ITransaction etc.
The tests should simulate the commands hitting the database using MOQ.
This just needs tests to cover the existing SQL commands so that they properly mocked.
Some tests will required dummy data to be returned and some tests can simply be stubbed.
Requirements are...
- Write tests for SQL Commands (which will be provided) using MOQ and MSTEST - Repository Pattern
- Comment the code IN DETAIL to describe how it works.
- MOQ tests should cover ExecuteNonQuery, ExecuteScalar, ExecuteReader commands.
- All tests should pass
- Tests will not connect to any live database, all tests will return dummy data and only simulate connection.
Hello Sir,
We have experience in writing MOCK test cases in MOQ and Rhino [login to view URL] would require to create Mock object for which we need the database details for which Mock test cases are to be written.
Looking forward to providing more details on the Db object (on which Mock test cases are to be written).
Eagerly awaiting for your positive response.
Regards
Tanmoy Moitra
£33 GBP dalam 2 hari
5.0 (1 ulasan)
1.9
1.9
2 pekerja bebas membida secara purata £37 GBP untuk pekerjaan ini