5 references to AddPolicy
Microsoft.AspNetCore.Http.Tests (5)
Timeouts\RequestTimeoutOptionsTests.cs (5)
14
options.
AddPolicy
("policy1", TimeSpan.FromSeconds(47));
39
options.
AddPolicy
("policy1", TimeSpan.FromSeconds(1));
41
options.
AddPolicy
("policy1", TimeSpan.FromSeconds(47));
49
Assert.Throws<ArgumentException>(() => options.
AddPolicy
("", TimeSpan.FromSeconds(47)));
50
Assert.Throws<ArgumentNullException>(() => options.
AddPolicy
(null, TimeSpan.FromSeconds(47)));