Sunday, February 20, 2011

jQuery plugin executes a callback based on a condition

    There is a Jquery utility that provides a way to execute callback functions based on one or more objects named jQuery.when(). However, when you need to do the same thing but based on one or more "conditions", how can you archive this?     For example, you have a javascript interger. What you want to do is watching it's value and wait until the value matchs the expected value then you...

Thursday, February 17, 2011

MVC Test Controller Builder and NSubstitute

If you are a web developer using ASP.NET MVC and Unit Test by NSubstitute, this blog is what you are looking for. I am sure there is at least one time you have problem writing unit test for controller but need to mock HttpContext. Whoever used MVCContrib would see that there is a class called TestControllerBuilder to help testing controller easily. However, this helper class is a part of RhinoMock or Moq to mock test objects. So...

Saturday, February 12, 2011

Looking for .NET Developers at Community Engine on the Northern Beaches in Sydney

I haven’t blogged for a while as I’ve been really busy in my new role at Community Engine where we are currently looking to expand our team. We’re doing some awesome stuff here to create a cutting edge product platform that will host our future client websites. The team is probably the best technically that I’ve worked with, and our implementation of SCRUM is the best I’ve seen. We’re also using all the latest and greatest technologies...