20 references to Date
Microsoft.AspNetCore.HeaderParsing.Tests (20)
CommonHeadersTests.cs (3)
79
Assert.Equal(HeaderNames.Date, CommonHeaders.
Date
.HeaderName);
80
Assert.Equal(DateTimeOffsetParser.Instance, CommonHeaders.
Date
.ParserInstance);
81
Assert.Null(CommonHeaders.
Date
.ParserType);
HeaderParsingExtensionsTests.cs (3)
81
var headerKey = new HeaderKey<DateTimeOffset>("Test", CommonHeaders.
Date
.ParserInstance!, 0);
83
var headerSetup = CommonHeaders.
Date
;
109
var dateHeaderKey = RegisterHeader(context, CommonHeaders.
Date
);
HeaderParsingFeatureTests.cs (6)
48
var key = Registry.Register(CommonHeaders.
Date
);
66
var key = Registry.Register(CommonHeaders.
Date
);
94
var key = Registry.Register(CommonHeaders.
Date
);
107
var key = Registry.Register(CommonHeaders.
Date
);
124
var key = Registry.Register(CommonHeaders.
Date
);
142
var key = Registry.Register(CommonHeaders.
Date
);
HeaderRegistryTests.cs (8)
29
var key = registry.Register(CommonHeaders.
Date
);
32
Assert.Equal(CommonHeaders.
Date
.ParserInstance, key.Parser);
33
Assert.Equal(CommonHeaders.
Date
.HeaderName, key.Name);
46
var key = registry.Register(CommonHeaders.
Date
);
61
Assert.Throws<InvalidOperationException>(() => registry.Register(CommonHeaders.
Date
));
69
var key1 = registry.Register(CommonHeaders.
Date
);
83
var key1 = registry.Register(CommonHeaders.
Date
);
84
var key2 = registry.Register(CommonHeaders.
Date
);