Exemple #1
0
 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);
 }
Exemple #2
0
 public CommandMethodFactoryProvider(IMethodCallValidatorService methodValidator)
 {
     this.methodValidator = methodValidator;
 }