public void SetUp()
        {
            theRule             = new RequiredFieldRule();
            theElementRequest   = ElementRequest.For <FieldValidationModifierTarget>(x => x.Name);
            theMatchingStrategy = MockRepository.GenerateStub <IValidationAnnotationStrategy>();
            theOtherStrategy    = MockRepository.GenerateStub <IValidationAnnotationStrategy>();

            theMatchingStrategy.Stub(x => x.Matches(theRule)).Return(true);
            theOtherStrategy.Stub(x => x.Matches(theRule)).Return(false);

            theModifier = new FieldValidationModifier(new[] { theMatchingStrategy, theOtherStrategy });
            theModifier.ModifyFor(theRule, theElementRequest);
        }
        public void SetUp()
        {
            theRule = new RequiredFieldRule();
            theElementRequest = ElementRequest.For<FieldValidationModifierTarget>(x => x.Name);
            theMatchingStrategy = MockRepository.GenerateStub<IValidationAnnotationStrategy>();
            theOtherStrategy = MockRepository.GenerateStub<IValidationAnnotationStrategy>();

            theMatchingStrategy.Stub(x => x.Matches(theRule)).Return(true);
            theOtherStrategy.Stub(x => x.Matches(theRule)).Return(false);

            theModifier = new FieldValidationModifier(new[] { theMatchingStrategy, theOtherStrategy });
            theModifier.ModifyFor(theRule, theElementRequest);
        }