Exemple #1
0
        // TODO: Create a real CCB context json and add an E2E test (pending CCB E2E and
        // clarity around sample mode.)

        private void Run_LiveModelReportActionTaken_Test(LiveModel liveModel, string eventId)
        {
            NativeMethods.LiveModelReportActionTakenOverride =
                (IntPtr liveModelPtr, IntPtr eventIdPtr, IntPtr apiStatus) =>
            {
                string eventIdMarshalledBack = NativeMethods.StringMarshallingFunc(eventIdPtr);
                Assert.AreEqual(eventId, eventIdMarshalledBack, "Marshalling eventId does not work properly in LiveModelReportActionTaken");

                return(NativeMethods.SuccessStatus);
            };

            liveModel.QueueActionTakenEvent(eventId);
        }
 /// <summary> Wrapper method of QueueActionTakenEvent </summary>
 public override void QueueActionTakenEvent(string eventId)
 {
     liveModel.QueueActionTakenEvent(eventId);
 }