PMunin.com Navigation

Google ads

Sunday, January 16, 2011

Homepage website integration with Blogspot

I’ve changed design of the homepage. Now it is fully integrated with blogspot. This means that I can change layout and theme on my blogspot and changes will affect my main site immediately.

Actually it is an experimental step. MasterPage now is created dynamically by downloading blogspot landing page and replacing appropiate sections with ContentPlaceHolder. Result stored in database and attached by custom VIrtualPathProvider.

It appeared that BlogSpot pages overloaded by embedded stylesheets. So there is some optimization work remains. Anyway homepage and blog look consistent now.

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.