Perfect console application in .net Core: set up dependency injection