private IEnumerable <string> GetFilteredMessages(MessageLevelType type) { return(AllMessages.Where(x => x.Level == type).Select(x => x.Text)); }