AnalyticsEvent simulator.

We are have an applications that monitors the event stream and extracts AnalyticsEvents.

_obj1 = _messageCommunication.RegisterCommunicationFilter(NewEventIndicationMessageHandler,
    new CommunicationIdFilter(MessageId.Server.NewEventIndication));
...
AnalyticsEvent evAnalyt = message.Data as AnalyticsEvent;

We are writting a simulator because live events are not always available.

Do you have a sample that could inject those AnalyticsEvents as needed for our testing?

There are multiple samples actually. I recommend the Analytics Event Trigger via library sample. Alternatives are: Library Event Generator and Trigger Analytics Event via XML samples.