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