Rui ChengWhat’s the real benefit dependency injection brings to youThere was an interview question: why do we use DI (dependency injection)? DI is so common in nowadays programming that you may not notice…Sep 5, 2019Sep 5, 2019
Rui ChengEasy Moq, easy life — make your .NET unit tests even simplerDependency injection is like programming 101 nowadays. One of its benefits is unit testing. We know that to unit test a DI-ed class, we…Jan 24, 2019Jan 24, 2019
Rui ChengUse Autofac for dynamic DI in ASP.NET CoreLately I’ve been working on a ASP.NET Core project for which I need a bit more advanced DI than what…Sep 30, 20181Sep 30, 20181