public void SetUp() { ISpecification holder = new Mock<ISpecification>().Object; var customer = new Customer17(); var mock = new Mock<INakedObjectAdapter>(); target = mock.Object; mock.Setup(no => no.Object).Returns(customer); MethodInfo method = typeof (Customer17).GetMethod("Validate0SomeAction"); facet = new ActionParameterValidation(method, holder); }
public void SetUp() { ISpecification holder = new Mock <ISpecification>().Object; var customer = new Customer17(); var mock = new Mock <INakedObject>(); target = mock.Object; mock.Setup(no => no.Object).Returns(customer); MethodInfo method = typeof(Customer17).GetMethod("Validate0SomeAction"); facet = new ActionParameterValidation(method, holder); }