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

Advertisements

.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

Breaking Information Hiding in C++

Almost every object-oriented programmer is familiar with the concept of information hiding. Actually, lots of them get confused with the terms encapsulation and information hiding. So, before we talk about information hiding itself, let me explain the difference of both terms: Encapsulation is the public interface that defines how an object can be used, and how … Continue reading Breaking Information Hiding in C++

C# Extension Methods

I've been talking about Object-Oriented Principles for a while, and this post will not be different. Here and here, I've introduced OOP and described an elegant solution to comply with Open-Closed Principle using Visitor Pattern, respectively. Today I'll be talking about a C# 3.0 feature called extension methods. Maybe you're now asking what extension methods … Continue reading C# Extension Methods

Delegates and Function Pointers in C#

Hi, I've been little busy these days due to an university research. However, I found some time to return with blog activities. Today, I'll talk about two easy features of C#: Delegates and Function Pointers. A delegate in C# is similar to a function pointer in C or C++. Using a delegate allows the programmer to … Continue reading Delegates and Function Pointers in C#