private void Run_LiveModelRequestMultiSlotWithFlags_Test(LiveModel liveModel, string contextJson, string eventId) { NativeMethods.LiveModelRequestMultiSlotDecisionWithFlagsOverride = (IntPtr liveModelPtr, IntPtr eventIdPtr, IntPtr contextJsonPtr, uint flags, IntPtr rankingResponse, IntPtr ApiStatus) => { string contextJsonMarshalledBack = NativeMethods.StringMarshallingFunc(contextJsonPtr); Assert.AreEqual(contextJson, contextJsonMarshalledBack, "Marshalling contextJson does not work properly in LiveModelRequestDecisionWithFlags"); return(NativeMethods.SuccessStatus); }; liveModel.RequestMultiSlotDecision(eventId, contextJson, ActionFlags.Deferred); }