LINQ for JavaScript

LINQ is one of my favorite features in the C# language so far. There is no such a thing as filtering, ordering and grouping data using an easy and fluent API. In the last weeks I found myself writing lot of JavaScript code. More than just ajax calls, DOM manipulation and fancy animations, my team … Continue reading LINQ for JavaScript

JavaScript Immetiate Object Initialization

Hello everyone, During this weekend I watched a couple of sessions in channel 9 recorded during the MIX 11 event. I really liked Elijah Manor’s talk whose title is Good JavaScript Habits for C# Developers. In addition to simple tips on JavaScript programming, such as False-y Values and Comparison Operators, Elijah showed some techniques that … Continue reading JavaScript Immetiate Object Initialization

Extending ASP.NET MVC Model Binding Mechanism

Hey guys, In the last posts I’ve talked about the use of Moq framework when writing ASP.NET MVC unit tests. Today, I will be talking about ASP.NET MVC Model Binding mechanism and how to extend it to make your life easier when writing testable web applications. [I have written a similar post on SharpShooters blog, … Continue reading Extending ASP.NET MVC Model Binding Mechanism

TDD in ASP.NET MVC Applications with Moq Framework

Last post, I introduced the use of Moq framework to code unit tests in .NET applications. Today, I’ll use Moq to test my ASP.NET MVC controllers. One of the key benefits of ASP.NET MVC is the facility to set up automated tests and use methodologies such as TDD (Test-Driven Development). Using the Red-Green-Refactor mantra, we … Continue reading TDD in ASP.NET MVC Applications with Moq Framework

Unit Testing .NET Application with Moq Framework

Hi guys, It's been a while since my last post here. In 2011 however I will try to come back to my routine of posting something new at least once a month. Today, I will share with you the way I've been writing tests for my ASP.NET applications using Moq framework. So let's start. Firstly, … Continue reading Unit Testing .NET Application with Moq Framework