Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }