Configuring a Unit Test for ASP.NET MVC2

Add References

 

Create Mock Global file

 

Initializing the Test using a Mock Global object