Programming Stuff

Monthly Archives: June 2014

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 […]