// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging.Testing; namespace Microsoft.AspNetCore.Session { public static class TestExtensions { public static IEnumerable OnlyMessagesFromSource(this IEnumerable source) { return source.Where(message => message.LoggerName.Equals(typeof(T).FullName, StringComparison.Ordinal)); } } }