public void Proccess_SplitUpdate_AddToQueueInWorker() { // Arrange. var notification = new SplitChangeNotifiaction { Type = NotificationType.SPLIT_UPDATE, ChangeNumber = 1585867723838 }; // Act. _notificationPorcessor.Proccess(notification); // Assert. _splitsWorker.Verify(mock => mock.AddToQueue(notification.ChangeNumber), Times.Once); }
private void EventReceived(object sender, EventReceivedEventArgs e) { _log.Debug($"Event received {e.Event}"); if (e.Event.Type == NotificationType.OCCUPANCY || e.Event.Type == NotificationType.CONTROL) { _notificationManagerKeeper.HandleIncomingEvent(e.Event); } else { _notificationPorcessor.Proccess(e.Event); } }