public void Then_DefaultAliasesResolve()
        {
            var expected = new Dictionary <string, Type>
            {
                { "sbyte", typeof(sbyte) },
                { "short", typeof(short) },
                { "int", typeof(int) },
                { "integer", typeof(int) },
                { "long", typeof(long) },
                { "byte", typeof(byte) },
                { "ushort", typeof(ushort) },
                { "uint", typeof(uint) },
                { "ulong", typeof(ulong) },
                { "float", typeof(float) },
                { "single", typeof(float) },
                { "double", typeof(double) },
                { "decimal", typeof(decimal) },
                { "char", typeof(char) },
                { "bool", typeof(bool) },
                { "object", typeof(object) },
                { "string", typeof(string) },
                { "datetime", typeof(DateTime) },
                { "DateTime", typeof(DateTime) },
                { "date", typeof(DateTime) },
                { "singleton", typeof(ContainerControlledLifetimeManager) },
                { "ContainerControlledLifetimeManager", typeof(ContainerControlledLifetimeManager) },
                { "transient", typeof(TransientLifetimeManager) },
                { "TransientLifetimeManager", typeof(TransientLifetimeManager) },
                { "perthread", typeof(PerThreadLifetimeManager) },
                { "PerThreadLifetimeManager", typeof(PerThreadLifetimeManager) },
                { "external", typeof(ExternallyControlledLifetimeManager) },
                { "ExternallyControlledLifetimeManager", typeof(ExternallyControlledLifetimeManager) },
                { "hierarchical", typeof(HierarchicalLifetimeManager) },
                { "HierarchicalLifetimeManager", typeof(HierarchicalLifetimeManager) },
                { "resolve", typeof(PerResolveLifetimeManager) },
                { "perresolve", typeof(PerResolveLifetimeManager) },
                { "PerResolveLifetimeManager", typeof(PerResolveLifetimeManager) },
            };

            foreach (var kv in expected)
            {
                Assert.AreSame(kv.Value, typeResolver.ResolveType(kv.Key, true));
            }
        }
 protected Type ResolveTypeName(string typeName)
 {
     return(typeResolver.ResolveType(typeName, false));
 }