18 references to Context
Microsoft.AspNetCore.HeaderParsing.Tests (18)
HeaderParsingFeatureTests.cs (18)
49Context.Request.Headers["Date"] = date; 51var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 67Context.Request.Headers["Date"] = currentDate; 68Context.Request.Headers["Test"] = futureDate; 70var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 90Context.Request.Headers["Date"] = date; 92var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 106var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 123var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 139Context.Request.Headers["Date"] = "Not a date."; 141var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 165helper.Feature.Context = Context; 178Context.Request.Headers[firstHeaderKey.Name] = DateTimeOffset.Now.ToString("R", CultureInfo.InvariantCulture); 179Context.Request.Headers[thirdHeaderKey.Name] = DateTimeOffset.Now.ToString("R", CultureInfo.InvariantCulture); 181helper.Feature.Context = Context; 196Context.Request.Headers[HeaderNames.CacheControl] = "max-age=604800"; 198var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 199var feature2 = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context };