public DataAnnotationValidatorFactoryFixture()
        {
            var factory =
                A.Fake<IPropertyValidatorFactory>();

            var adapter =
                A.Fake<IValidatableObjectAdapter>();

            this.subject = 
                new DataAnnotationsValidatorFactory(factory, adapter);
        }
        public DataAnnotationValidatorFixture()
        {
            var adapterFactory = new DefaultPropertyValidatorFactory(new IDataAnnotationsValidatorAdapter[]
            {
                new RangeValidatorAdapter(),
                new RegexValidatorAdapter(),
                new RequiredValidatorAdapter(),
                new StringLengthValidatorAdapter(),
                new OopsAdapter()
            });

            var validator = A.Fake<IValidatableObjectAdapter>();

            this.factory = new DataAnnotationsValidatorFactory(adapterFactory, validator);
        }
 public DataAnnotationValidatorFactoryFixture()
 {
     this.subject = new DataAnnotationsValidatorFactory();
 }