コード例 #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);
 }
コード例 #2
0
 public TestingCommandImplementor(ITestingCommandImplementor mock)
 {
     this.mock = mock;
 }