Recently I got my hands on NDepend, a static code analysis tool for .Net framework. Because it can work as a plugin for Visual Studio, it offers great integration with code and rapid results. So what it can do? Let’s see! Getting started To start working with NDepend you need to download it and install… Continue reading Analyze code with NDepend
Month: January 2019
Why sharing your DTOs as dedicated nuget package is a bad idea
I’m working in a solution, that has many micro-services and some of them share the same DTOs. Let’s say I have a Product dto, that is assembled and processed through 6 micro-services and all of them has the same contract. In my mind an idea emerged: Can I have a place to keep this contract… Continue reading Why sharing your DTOs as dedicated nuget package is a bad idea
Receive Service Bus messages in Service Fabric
This is one of the proof of concent that I did at work. The idea was to add another Service Bus application to an existing solution, instead of starting a whole new micro-service. It was a lot faster just to add another .net core console application, but setting up Service Fabric cluster always brings some unexpected… Continue reading Receive Service Bus messages in Service Fabric
Writing unit tests with NUnit and NSubstitute
Imagine you are a Junior .Net Developer and you just started your development career. You got your first job and you are given a task – write unit tests! Nothing to worry about, since you got me. I’ll show you how things are done and what are the best practices to follow. Introduction Writing unit… Continue reading Writing unit tests with NUnit and NSubstitute