This question may have been asked before, but I did not find anything while searching for SO.
When using Injection Dependency, as usual, you handle types such as lists, network credentials, etc.
At the moment, in one of my service designers, I:
_itemsCheckedForRelations = new List<Guid>(); _reportManagementService.Credentials = new NetworkCredential([...]);
Could you reorganize them into a user factory class / interface and introduce them or do as I did here?
I am never sure how to handle these types of object creation.
source share