Exemple #1
0
        private void Run_LiveModelRequestContinuousAction_Test(LiveModel liveModel, string contextJson)
        {
            NativeMethods.LiveModelRequestContinuousActionOverride =
                (IntPtr liveModelPtr, IntPtr eventIdPtr, IntPtr contextJsonPtr, IntPtr continuousActionResponse, IntPtr ApiStatus) =>
            {
                string contextJsonMarshalledBack = NativeMethods.StringMarshallingFunc(contextJsonPtr);
                Assert.AreEqual(contextJson, contextJsonMarshalledBack, "Marshalling contextJson does not work properly in LiveModelRequestContinuousAction");

                return(NativeMethods.SuccessStatus);
            };

            liveModel.RequestContinuousAction(PseudoLocEventId, contextJson);
        }