54 references to MethodArgs
Microsoft.Extensions.Http.Resilience.Tests (54)
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (54)
98[InlineData(MethodArgs.None)]
99[InlineData(MethodArgs.ConfigureMethod)]
100[InlineData(MethodArgs.Configuration)]
101[InlineData(MethodArgs.Configuration | MethodArgs.ConfigureMethod)]
103public void AddStandardResilienceHandler_NullBuilder_Throws(MethodArgs mode)
110[InlineData(MethodArgs.ConfigureMethod)]
111[InlineData(MethodArgs.Configuration | MethodArgs.ConfigureMethod)]
113public void AddStandardResilienceHandler_NullConfigureMethod_Throws(MethodArgs mode)
121[InlineData(MethodArgs.Configuration)]
122[InlineData(MethodArgs.Configuration | MethodArgs.ConfigureMethod)]
124public void AddStandardResilienceHandler_NullConfiguration_Throws(MethodArgs mode)
131[InlineData(MethodArgs.Configuration)]
132[InlineData(MethodArgs.Configuration | MethodArgs.ConfigureMethod)]
134public void AddStandardResilienceHandler_NullConfigurationSectionContent_Throws(MethodArgs mode)
141[InlineData(MethodArgs.Configuration)]
142[InlineData(MethodArgs.Configuration | MethodArgs.ConfigureMethod | MethodArgs.Builder)]
144public void AddStandardResilienceHandler_ConfigurationPropertyWithTypo_Throws(MethodArgs mode)
184AddStandardResilienceHandler(MethodArgs.ConfigureMethod, builder, null!, options =>
200[InlineData(MethodArgs.None)]
201[InlineData(MethodArgs.ConfigureMethod)]
202[InlineData(MethodArgs.Configuration)]
203[InlineData(MethodArgs.Configuration | MethodArgs.ConfigureMethod)]
204[InlineData(MethodArgs.Builder | MethodArgs.ConfigureMethodWithServiceProvider)]
205[InlineData(MethodArgs.ConfigureMethod | MethodArgs.Builder)]
206[InlineData(MethodArgs.Configuration | MethodArgs.Builder)]
207[InlineData(MethodArgs.Configuration | MethodArgs.ConfigureMethod | MethodArgs.Builder)]
209public void AddStandardResilienceHandler_EnsureConfigured(MethodArgs mode)
272MethodArgs mode,
279MethodArgs.None => builder.AddStandardResilienceHandler(),
280MethodArgs.Configuration | MethodArgs.Builder => builder.AddStandardResilienceHandler().Configure(configuration),
281MethodArgs.ConfigureMethod | MethodArgs.Builder => builder.AddStandardResilienceHandler().Configure(configureMethod),
282MethodArgs.ConfigureMethodWithServiceProvider | MethodArgs.Builder => builder.AddStandardResilienceHandler().Configure((options, serviceProvider) =>
287MethodArgs.Configuration | MethodArgs.ConfigureMethod | MethodArgs.Builder => builder.AddStandardResilienceHandler().Configure(configuration).Configure(configureMethod),
288MethodArgs.Configuration | MethodArgs.ConfigureMethod => builder.AddStandardResilienceHandler().Configure(configuration).Configure(configureMethod),
289MethodArgs.Configuration => builder.AddStandardResilienceHandler(configuration),
290MethodArgs.ConfigureMethod => builder.AddStandardResilienceHandler(configureMethod),