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); } }
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))); } }