Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rhino-mocks - good sample apps

I know that there has been a couple questions about tutorials on rhino-mocks. But I am wondering if there are any sample apps out there that use rhino-mocks in the context of an n-tier business application using ado.net.

I find the tutes good, but they don't seem to bring everything all together into the big picture. Thus, I am looking for a sample app that brings the full picture together.

Also, I think there is a little bit of a lack of examples which specifically deal with mocking and testing the logic in the data access layer.

Cheers Anthony

like image 715
vdhant Avatar asked Oct 25 '08 14:10

vdhant


2 Answers

I have a demo app from a talk I gave on testing. It does some mocking with Rhino Mocks. You can download it if you would like:

http://www.houseofbilz.com/archive/2008/10/18/gui-testing-resources.aspx

like image 70
Brian Genisio Avatar answered Nov 02 '22 23:11

Brian Genisio


Rhino Mocks Documentation
TDD : Introduction to Rhino Mocks

Using Google you will fine more.
You should try to understand mocking, and that it's purpose is to make testing possible by Mocking some lower layer. It provides means of splitting big picture in lots of independent smaller pictures. That way you are able to test business layer without hitting database.

Stackoverflow: What is a mock and when should you use it?

like image 34
Robert Vuković Avatar answered Nov 03 '22 01:11

Robert Vuković