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