12 references to _logger
Microsoft.AspNetCore.HeaderParsing.Tests (12)
HeaderParsingFeatureTests.cs (12)
51var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 70var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 92var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 106var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 111Assert.Equal("Header 'Date' not found.", _logger.Collector.LatestRecord.Message); 123var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 130Assert.Equal("Using a default value for header 'Date'.", _logger.Collector.LatestRecord.Message); 141var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 148Assert.Equal("Can't parse header 'Date' due to 'Unable to parse date time offset value.'.", _logger.Collector.LatestRecord.Message); 164var helper = new HeaderParsingFeature.PoolHelper(pool.Object, Registry, _logger, metrics); 198var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 199var feature2 = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context };