Using Memcached as Distributed Cache in .NET Core

Using a distributed cache is key for building a high performant distributed system. Most of the time going to a distributed in-memory cache is better than hitting a centralized database. However, there are multiple options to choose from. But arguably the most popular ones are Memcached and Redis. In this post, I will explore using … Read more

Autofac as IoC Container for .NET Core

In my last blog post https://dotnetcorecentral.com/blog/dependency-injection-in-net-core-console-application/, I have explored using Dependency Injection in .NET Core console application. But, in this blog post, I will explore using Autofac as the Dependency Injection container for .NET Core Console application. What is Autofac Autofac is an Inversion Of Control (IoC) container for .NET Framework and .NET Core. I … Read more

Dependency Injection in .NET Core Console Application

In this blog post, I will write about Dependency Injection in .NET Core Console Application. I will start from where I left in my last blog https://dotnetcorecentral.com/blog/docker-running-background-thread/. What is Dependency Injection? In Dependency Injection, dependencies of an object are sent from outside. Meaning, the dependencies of an object are not created inside of the class. … Read more

Docker running background thread

Welcome back to .NET Core Central. Today I am going to pick up the application I build in the last blog: https://dotnetcorecentral.com/blog/docker-container-for-net-core/. I will update the application to demonstrate docker running background thread in a .NET Core console application. Problem statement for Docker running a background thread If we create a project which runs a … Read more

Docker Container for .NET Core

Welcome back to .NET Core Central. Today I am going to write an introductory blog on docker containers. In this blog, I will create a sample .NET Core Console application and run in docker. Very basic implementation with just a Console.Write statement. In my future blogs, I will dig deeper into some complex implementation and … Read more

NUnit – Unit Testing in .Net Core

When doing the YouTube video for the last blog https://dotnetcorecentral.com/blog/sqlite-for-unit-testing-in-net-core/, I mentioned that I might do a post in NUnit. Hence, here it is, an introduction to NUnit as I dig through some of the features. What is NUnit? NUnit is a unit testing framework for .Net. It is probably the most popular unit testing … Read more

Entity Framework Core (A deep dive with SQL Server)

Entity Framework Core is the .Net Core version of Entity Framework. Which is an ORM (Object Relational Mapper) tool for .Net Framework to work with databases.Entity Framework Core has the following features, which differentiates it from the classic Entity Framework: It is cross-platform (by the virtue of being built for .Net Core) Extensible And lightweight … Read more

Unit testing with Machine.Specifications (aka MSpecs) and FakeItEasy – Continued

In the last post Unit testing with Machine.Specifications (aka MSpecs) and FakeItEasy, I have covered basic unit testing with MSpecs and FakeItEasy. Today first I am going to go through some more tests. And then I will cover the concepts of white-box testing with MSpecs and FakeItEasy. New tests for positive cases In the last … Read more

Unit testing with Machine.Specifications (aka MSpecs) and FakeItEasy

Unit testing is very critical for any application. In this blog post, I will walk through unit testing using Machine.Specifications (aka MSpecs) and FakeItEasy. The focus of unit testing is to test a unit of code in isolation of everything around it. Meaning we just test the method in questions and not the dependencies. Also … Read more