views:

1011

answers:

3

Hi guys

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

+1  A: 

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?

Robert Vuković
Thanks for the reply but I do have a fairly good grasp of mocking its just that I havn't been able to find an end to end example.
vdhant
A: 

Anyone got any other examples?

vdhant
+2  A: 

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

Brian Genisio
+1 for your work. Please, add some more details in your answer in which tests one should look :)
Sunny
Look in the RecipeBox.Tests project. The tests that use mocks are: RecipeBoxLogicTests.cs and GUITests\ReciptBoxGUIUnitTests*.cs
Brian Genisio