Wednesday, January 5, 2011

.NET Random Mock

I published my first open-source project to codeplex. You can find it here: http://randomMock.codeplex.com

image

This is Moq extensions that allow you to implement any object models and populate it with a random data by one line of code. You can see the link for more details.

I am a worshipper of MVVM pattern (its modification). I used it for a long time before I got to know that this is called MVVM. So the first real world implementation of this extension for me is generating test ViewModels for Views. Currently I’m working on project based on ASP.NET MVC and I’m injecting MVVM pattern to it, as views are too complicated to use domain object model directly.