Programming Stuff

Blog

Use Fake Objects As Mock or Stub (TDD)

In Test-driven development (TDD) you create your testable code faking some of the real infrastructure implementations. A fake object allow you to mimic real functions such as Send Email/SMS, CRUD operations in the database, etc. According to Roy Osherove (The Art Of Unit […]

Entity Framework: Pagination Behind the Scenes

Data pagination is always a headache. We should customize every time we want to gain performance in a large data result. In this post, I will show you the correct way to do pagination by snicking the code generated by Entity […]

Onion Architecture in Action – Get Started

Get Started: How to Implement Onion Architecture Successfully   In this post, I am going to create a demo implementing Onion Architecture. Here some links about this topic. Environment: IDE: Visual Studio 2010 / C# UI: ASP.NET MVC Data: Dummy List […]

Configuring Log4Net

I have a multilayered application and I want to keep my logger in the Data Layer… Here the doc about DB structure and config file: http://logging.apache.org/log4net/release/config-examples.html While I was implementing it, I found 3 major issues: 1. Buffer/Flush May you […]

Using Action Mailer in a Console Application

For this demo, I basically created 2 projects: Console Project Library Project As you notice already, I am not going to use MVC projects due to the goal of this project is to show how Action Mailer Standalone works and how […]