Use ActiveRecord bang methods in your tests

I've been working with Rails for more than 5 years now and during this journey I've learned the importance of building a reliable and maintainable test suite along with your development code. There are lots of resources on the web with advices on how to write tests in Rails applications. This blog post talks about one specific … Continue reading Use ActiveRecord bang methods in your tests

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

.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. … Continue reading .NetArchitects Coding Dojo – Converting Roman Numerals to Decimal