public void TestInitialize() { ValidationFactory.SetDefaultConfigurationValidatorFactory(new SystemConfigurationSource(false)); valueAccessBuilder = new ReflectionMemberValueAccessBuilder(); mockFactory = new MockMemberAccessValidatorBuilderFactory(valueAccessBuilder); builder = new MetadataValidatorBuilder(mockFactory, ValidationFactory.DefaultCompositeValidatorFactory); }
public void SetUp() { mockFactory = new MockMemberAccessValidatorBuilderFactory(); configurationSource = new DictionaryConfigurationSource(); builder = ConfigurationValidatorBuilder.FromConfiguration( configurationSource, mockFactory, ValidationFactory.DefaultCompositeValidatorFactory); }
public void SetUp() { valueAccessBuilder = new ReflectionMemberValueAccessBuilder(); mockFactory = new MockMemberAccessValidatorBuilderFactory(valueAccessBuilder); builder = new MetadataValidatorBuilder(mockFactory, ValidationFactory.DefaultCompositeValidatorFactory); }