public void SetCorsPolicyProviderFactory_NullCorsEngine_Throws()
 {
     Assert.ThrowsArgumentNull(() =>
     {
         CorsHttpConfigurationExtensions.SetCorsPolicyProviderFactory(new HttpConfiguration(), null);
     },
                               "corsPolicyProviderFactory");
 }
 public void SetCorsPolicyProviderFactory_NullHttpConfiguration_Throws()
 {
     Assert.ThrowsArgumentNull(() =>
     {
         CorsHttpConfigurationExtensions.SetCorsPolicyProviderFactory(null, new AttributeBasedPolicyProviderFactory());
     },
                               "httpConfiguration");
 }