public void RequestMethods() { CorsConfig cors = CorsConfigBuilder.ForAnyOrigin() .AllowedRequestMethods(HttpMethod.Post, HttpMethod.Get).Build(); Assert.True(cors.AllowedRequestMethods().Contains(HttpMethod.Post)); Assert.True(cors.AllowedRequestMethods().Contains(HttpMethod.Get)); }