public void ShouldSupportSupportedMemberTypes()
        {
            var supportConsultant = new MemberTypeSupportConsultant();
            var router            = new MemberTypeConfigurationHandlingRouter();

            foreach (var supportedMemberType in supportConsultant.SupportedTypes)
            {
                // absence of NotSupportedException means type is supported
                router.GetMemberConfigurationHandlerByMemberType(supportedMemberType);
            }
        }
Esempio n. 2
0
        public void ShouldSupportSupportedMemberTypes()
        {
            var supportConsultant = new MemberTypeSupportConsultant();
            var controller        = new MemberConfigurationAccessController();

            foreach (var supportedMemberType in supportConsultant.SupportedTypes)
            {
                // absence of NotSupportedExceptions means type is supported
                controller.CreateMemberConfigurationForType("member", supportedMemberType,
                                                            new TypeResolvingConfiguration(typeof(object)));
                controller.GetMemberConfigurationType("member", supportedMemberType,
                                                      new TypeResolvingConfiguration(typeof(object)));
                controller.HasMemberConfigurationType("member", supportedMemberType,
                                                      new TypeResolvingConfiguration(typeof(object)));
            }
        }