public async Task TestTestNoParametersAndNoReturnInvocationNoParamAndNoReturnUsingMethodClient()
        {
            var harness    = new ModuleHostHarness();
            var controller = new TestControllerV1();
            await harness.RunTestAsync(controller.YieldReturn(), async (device, module, services) => {
                var hub = services.Resolve <IMethodClient>();

                var response = await hub.CallMethodAsync(device, module, "TestNoParametersAndNoReturn_V1",
                                                         JsonConvertEx.SerializeObject(null));

                Assert.Null(response);
                Assert.True(controller._noparamcalled);
            });
        }
        public async Task TestTestNoParametersAndNoReturnInvocationNoParamAndNoReturn()
        {
            var harness    = new ModuleHostHarness();
            var controller = new TestControllerV1();
            await harness.RunTestAsync(controller.YieldReturn(), async (device, module, services) => {
                var hub = services.Resolve <IIoTHubTwinServices>();

                var response = await hub.CallMethodAsync(device, module, new MethodParameterModel {
                    Name        = "TestNoParametersAndNoReturn_V1",
                    JsonPayload = JsonConvertEx.SerializeObject(null)
                });

                Assert.Null(response.JsonPayload);
                Assert.Equal(200, response.Status);
                Assert.True(controller._noparamcalled);
            });
        }