public bool IsNotDuplicate(ReadingMessage readingMessage)
        {
            var eventId = readingMessage.Reading.EventId;

            if (_previousEventIds.Contains(eventId))
            {
                return(false);
            }

            _previousEventIds.Add(eventId);
            return(true);
        }
Esempio n. 2
0
 public bool FromValidLocation(ReadingMessage readingMessage)
 {
     return(_validLocationIds.Contains(readingMessage.Reading.LocationId));
 }