public void Create_ReturnsRequestLocalizationOptions(RequestLocalizationOptions options)
        {
            var requestCulture    = new RequestCulture("pt-BR");
            var supportedCultures = new List <CultureInfo> {
                new CultureInfo("pt-BR")
            };
            var action = RequestLocalizationOptionsFactory.Create();

            action.Invoke(options);

            // Asserts
            options.DefaultRequestCulture.Should().BeEquivalentTo(requestCulture);
            options.SupportedCultures.Should().BeEquivalentTo(supportedCultures);
        }
 public static IServiceCollection AddMyRequestLocalizationOptions(this IServiceCollection services) =>
 services.Configure(RequestLocalizationOptionsFactory.Create());