protected void SetUp() { mocks = new Mockery(); mockMethodInvocationSerializer = mocks.NewMock<IMethodInvocationSerializer>(); mockRemoteSender = mocks.NewMock<IRemoteSender>(); mockRemoteReceiver = mocks.NewMock<IRemoteReceiver>(); testMethodInvocationRemoteSender = new MethodInvocationRemoteSender(mockMethodInvocationSerializer, mockRemoteSender, mockRemoteReceiver); object[] testMethodInvocationParameters = new object[3]; testMethodInvocationParameters[0] = "ABC"; testMethodInvocationParameters[1] = 12345; testMethodInvocationParameters[2] = true; testMethodInvocation = new MethodInvocation("TestMethod", testMethodInvocationParameters, typeof(string)); testVoidMethodInvocation = new MethodInvocation("TestMethod", testMethodInvocationParameters); }
//****************************************************************************** // // Method: Model (constructor) // //****************************************************************************** /// <summary> /// Initialises a new instance of the SampleApplication4.Model class. /// </summary> /// <param name="methodInvocationSender">The method invocation remote sender to use generate the Monte Carlo scenarios.</param> public Model(IMethodInvocationRemoteSender methodInvocationSender) { this.methodInvocationSender = methodInvocationSender; }