C# Practice with dependency injection