3 comments on “Implementing and testing Repository Pattern using Entity Framework”

Implementing and testing Repository Pattern using Entity Framework

There are many blog posts and misconceptions about Repository Pattern, especially since the introduction of the OR/M libraries, like Entity Framework. In this article, we will investigate why this pattern is still useful, what are the benefits of using it…

3 comments on “Exploring Dependency Injection in C# and Top 3 DI Containers – part 2.”

Exploring Dependency Injection in C# and Top 3 DI Containers – part 2.

In the previous article, we covered some topics that are important for understanding Dependency Injection. We considered that Dependency Injection is not just one principle, but an orchestration of many good practices, like Single Responsibility Principle and Dependency Inversion Principle. Apart from that,…

8 comments on “Abolishing Switch-Case Statement and Pattern Matching in C# 7.0”

Abolishing Switch-Case Statement and Pattern Matching in C# 7.0

There are many arguments on the web regarding the switch-case statement. It seems that half of the programmers think that switch-case statement is actually an anti-pattern, and other half claims there are in fact use cases for this concept. Usually, the…