I am using DI and have the following
public DoSomethingWithUsers(User user1, User user2){
this.user1 = user1;
this.user2 = user2;
}
Notice that the same type is being injected twice.
As I proceed with my coding/testing I noticed that all methods being run on user1 and user2 are effecting user1.
Is there a way to inject multiple objects of the same type with picocontainer and have them be "independent" objects as intended ? Or, is there a different DI package that would allow for such behavior ?
thnx