public void SetUp() { methodCallValidatorServiceMock = Substitute.For <IMethodCallValidatorService>(); systemUnderTest = new CommandMethodFactoryProvider(methodCallValidatorServiceMock); commandContextMock = Substitute.For <ICommandContext>(); testingCommandImplementorMock = Substitute.For <ITestingCommandImplementor>(); testingCommandImplementorProxy = new TestingCommandImplementor(testingCommandImplementorMock); commandContextMock.GetService <TestingCommandImplementor>().Returns(testingCommandImplementorProxy); }
public CommandMethodFactoryProvider(IMethodCallValidatorService methodValidator) { this.methodValidator = methodValidator; }