public override void Init()
        {
            base.Init();

            EventQueueManager.ResetInstance();
            _eventProducer          = new EventProducer(new AppConfigEventGeneratorsProvider().GetAll().ToArray());
            _messageBuilderConsumer = new MessageBuilder();
        }
Пример #2
0
 public void ShouldUnregisterToEventEnqueuedEvent()
 {
     EventQueueManager.Instance.GetType(); // trigger lazy initialization
     EventQueueManager.OnEventEnqueued(EventPriority.High, 1);
     EventQueueManager.ResetInstance();
     EventQueueManager.Instance.GetType(); // trigger lazy initialization
     EventQueueManager.OnEventEnqueued(EventPriority.High, 1);
     Assert.AreEqual(2, TelemetryCollector.GetDataAndReset()[CounterType.EnqueuedHighPriorityEvent]);
 }
Пример #3
0
 public void TestInitialize()
 {
     EventQueueManager.ResetInstance();
     _queueManager = EventQueueManager.Instance;
 }