May 2010 - Posts

Mocking successive calls of similar type via sequential mocking by Mehfuz's WebLog

In this post , i show how you can benefit from  sequential mocking feature[In JustMock] for setting up expectations with successive calls of same type.  To start let’s first consider the following dummy database and entity class. public class...
Filed under: , ,

MvcExtensions - ActionFilter by Kazi Manzur Rashid's Blog

One of the thing that people often complains is dependency injection in Action Filters. Since the standard way of applying action filters is to either decorate the Controller or the Action methods, there is no way you can inject dependencies in the action...

Is your test method self-validating ? by Mehfuz's WebLog

Writing state of art unit tests that can validate your every part of the framework is challenging and interesting at the same time, its like becoming a samurai. One of the key concept in this is to keep our test synced all the time as underlying code...
Filed under: , , ,

MvcExtensions - PerRequestTask by Kazi Manzur Rashid's Blog

In the previous post , we have seen the BootstrapperTask which executes when the application starts and ends, similarly there are times when we need to execute some custom logic when a request starts and ends. Usually, for this kind of scenario we create...

Finally! Entity Framework working in fully disconnected N-tier web app by Omar AL Zabir on things you don't find easily

Entity Framework was supposed to solve the problem of Linq to SQL, which requires endless hacks to make it work in n-tier world. Not only did Entity Framework solve none of the L2S problems, but also it made it even more difficult to use and hack it for...
Filed under: , , , , ,

MvcExtensions – Custom Service Registration by Kazi Manzur Rashid's Blog

[Special Note: I have just released SP1 Preview which contains the newly added Autofac Adapter and minor Windsor changes] In this post, I will show you how you can register your custom services in your preferred IoC container and how the MvcExtensions...

Munq is for web, Unity is for Enterprise by Omar AL Zabir on things you don't find easily

The Unity Application Block (Unity) is a lightweight extensible dependency injection container with support for constructor, property, and method call injection. It’s a great library for facilitating Inversion of Control and the recent version supports...

Keep website and webservices warm with zero coding by Omar AL Zabir on things you don't find easily

If you want to keep your websites or webservices warm and save user from seeing the long warm up time after an application pool recycle, or IIS restart or new code deployment or even windows restart, you can use the tinyget command line tool, that comes...

Mocking property sets by Mehfuz's WebLog

In this post, i will be showing how you can mock property sets with your expected values or even action using JustMock. To begin, we have a sample interface: public interface IFoo { int Value { get ; set ; } } Now,  we can create a mock that will...
Filed under: , , ,

Do not use “using” in WCF Client by Omar AL Zabir on things you don't find easily

You know that any IDisposable object must be disposed using using. So, you have been using using to wrap WCF service’s ChannelFactory and Clients like this: using(var client = new SomeClient()) {. ..} Or, if you are doing it the hard and slow way (without...
Filed under: , ,

MvcExtensions – Bootstrapping by Kazi Manzur Rashid's Blog

When you create a new ASP.NET MVC application you will find that the global.asax contains the following lines: namespace MvcApplication1 { // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visit http://go.microsoft.com/?LinkId=9394801...

Announcing the RTM of MvcExtensions (aka System.Web.Mvc.Extensibility) by Kazi Manzur Rashid's Blog

I am proud to announce the v1.0 of MvcExtensions (previously known as System.Web.Extensibility). There has been quite a few changes and enhancements since the last release . Some of the major changes are: The Namespace has been changed to MvcExtensions...

WPF: My Rollercoaster ride by Nazmul weblog

May be the title does not match with my topic, but I do not found more appropriate title than this. I know, it is too late to share my first experience about WPF, but I like to share it with you. In here I am going to talk about few point, first one is...

Step by Step screencasts to do Behavior Driven Development on WCF and UI using xUnit by Omar AL Zabir on hard to find tech stuffs

I am trying to encourage my team to get into Behavior Driven Development (BDD). So, I made two quick video tutorials to show how BDD can be done from early requirement collection stage to late integration tests. It explains breaking user stories into...

Rescue overdue offshore projects and convince management to use automated tests by Omar AL Zabir on hard to find tech stuffs

I have published two articles on codeproject recently. One is a story where an offshore project was two months overdue, my friend who runs it was paying the team from his own pocket and he was drowning in ever increasing number of change requests and...
Filed under: , , , ,
Powered by Community Server (Non-Commercial Edition), by Telligent Systems