public bool IsNotDuplicate(ReadingMessage readingMessage) { var eventId = readingMessage.Reading.EventId; if (_previousEventIds.Contains(eventId)) { return(false); } _previousEventIds.Add(eventId); return(true); }
public bool FromValidLocation(ReadingMessage readingMessage) { return(_validLocationIds.Contains(readingMessage.Reading.LocationId)); }