Category Archives: Uncategorized
Binding JS array to C# list in ASP.NET MVC
Hey guys, This will be a very short post about a problem that I faced this week while writing some JavaScript code. At first sight, the acticity should be a very simple one: send an array of data from client to server via AJAX. My pair and I tried a simple POST request similiar to […]
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, […]
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 […]
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, […]
.NetArchitects Coding Dojo – Converting Roman Numerals to Decimal
Hi guys, As some of you who follow me at @nandokakimoto already know, last week I participated in the first Coding Dojo from Recife’s .NetArchitects group and it was really great. There, I met some friendly faces and after a short conversation about the Coding Dojo practice, @WaldyrFelix brought the problem of adding Roman numerals. […]
Singleton (Anti-) Pattern
I’ve implemented my first design patterns at college, while creating a web system during the software engineer course. My classmates and I needed a facade class with a single instance of it throughout the system. So, because we’re really smart, we’ve applied the Facade and Singleton pattern. Actually, we’ve implemented the patterns without knowledge of […]
