public void ShouldBeAbleToResolveNamedInstancesAsDictionary()
{
var container = new ObjectContainer();
container.RegisterTypeAs<VerySimpleClass, IInterface1>("one");
container.RegisterTypeAs<SimpleClassWithDefaultCtor, IInterface1>("two");
// when
var instanceDict = container.Resolve<IDictionary<string, IInterface1>>();
// then
instanceDict.Keys.ShouldContain("one");
instanceDict.Keys.ShouldContain("two");
instanceDict["one"].ShouldBeType<VerySimpleClass>();
instanceDict["two"].ShouldBeType<SimpleClassWithDefaultCtor>();
}