public void SetUp() { theRequest = ElementRequest.For<FieldValidationModifierTarget>(x => x.Name); theModifier = new FieldValidationElementModifier(); theFieldModifier = MockRepository.GenerateStub<IFieldValidationModifier>(); theRequest.ReplaceTag(new HtmlTag("input")); theServices = new InMemoryServiceLocator(); theServices.Add(ValidationGraph.BasicGraph()); theServices.Add(theFieldModifier); theRequest.Attach(theServices); }
public void SetUp() { theRequest = ElementRequest.For <FieldValidationModifierTarget>(x => x.Name); theModifier = new FieldValidationElementModifier(); theFieldModifier = MockRepository.GenerateStub <IFieldValidationModifier>(); theRequest.ReplaceTag(new HtmlTag("input")); theServices = new InMemoryServiceLocator(); theServices.Add(ValidationGraph.BasicGraph()); theServices.Add(theFieldModifier); theRequest.Attach(theServices); }