I have the constructor below. My question is:
1. Should I extract out interfaces for the objects being created in the constructor and then mock those objects with some mocking framework? 2. How would I test this constructor?
Constructor:
protected SomeObjectIveCreated1 member1{ get; set; }
private readonly SomeObjectIveCreated2 member2;
public MyConstructor(string name)
{
this.member0= name;
this.member1= new SomeObjectIveCreated1(this as ISomeInterface);
this.member2= new SomeObjectIveCreated2();
}