示例#1
0
        private void ModuleHostDriverCode()
        {
            Mock <IModuleHost> myModuleHostMock = new Mock <IModuleHost>();

            myModuleHostMock.Setup(call =>
                                   call.PostOutputDataItems(
                                       It.IsAny <DataItem>(),
                                       It.IsAny <ModuleHostCallback.DataItemAcknowledgementCallback>(),
                                       It.IsAny <object>()));

            ModuleHostCallDispatcher dispatcher = new ModuleHostCallDispatcher(myModuleHostMock.Object);
        }
示例#2
0
        private void ModuleHostDriverCode()
        {
            Mock<IModuleHost> myModuleHostMock = new Mock<IModuleHost>();

            myModuleHostMock.Setup(call =>
                            call.PostOutputDataItems(
                            It.IsAny<DataItem>(),
                            It.IsAny<ModuleHostCallback.DataItemAcknowledgementCallback>(),
                            It.IsAny<object>()));

            ModuleHostCallDispatcher dispatcher = new ModuleHostCallDispatcher(myModuleHostMock.Object);
        }