public ContainerThing(SpiderMan spiderMan, IronMan ironMan, TheHulk hulk, Thor thor) { _spiderMan = spiderMan; _ironMan = ironMan; _hulk = hulk; _thor = thor; }
public void build_by_explicit_arguments() { var hulk = new TheHulk(); var thor = new Thor(); var args = new ServiceArguments().With(hulk).With(thor); var thing = facility.Build <ContainerThing>(args); thing.Hulk.ShouldBeTheSameAs(hulk); thing.Thor.ShouldBeTheSameAs(thor); }