public void TestPet_DecorateDataModelWithPropertyName() { var settings = CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.Default); settings.DecorateDataModelWithPropertyName = true; helper.GenerateAndAssertAndBuild("SwagMock\\pet.yaml", "Results\\Pet_DecorateDataModelWithPropertyName.txt", settings); }
public void TestPet_UseCSharpNullable() { var settings = CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.Default); settings.UseNullableQuestionMark = true; helper.GenerateAndAssertAndBuild("SwagMock\\pet.yaml", "Results\\PetNullable.txt", settings); }
public void TestEBay_buy_order_ArrayAsCollection() { var settings = CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.Default); settings.ArrayAs = ArrayAsIEnumerableDerived.ICollection; helper.GenerateAndAssertAndBuild("SwagMock\\buy_order_v1_beta_oas3.json", "Results\\buy_order_ArrayAsCollection.txt", settings); }
public void TestPet_EnumToString() { var settings = CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.Default); settings.EnumToString = true; helper.GenerateAndAssert("SwagMock\\pet.yaml", "NG2Results\\Pet_EnumToString.txt", settings); }
public void TestPet_DisableSystemNullableByDefault() { var settings = CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.Default); settings.DisableSystemNullableByDefault = true; helper.GenerateAndAssertAndBuild("SwagMock\\pet.yaml", "Results\\Pet_DisableSystemNullableByDefault.txt", settings); }
public void TestPet_EnumToString() { var settings = CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.Default); settings.DecorateDataModelWithDataContract = true; settings.EnumToString = true; helper.GenerateAndAssertAndBuild("SwagMock\\pet.yaml", "Results\\Pet_EnumToString.txt", settings); }
public void Test_vimeo() { var settings = CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.Default); settings.UseNullableReferenceType = true; var errorText = helper.GenerateFromOpenApiAndBuildWithError(@"..\..\..\..\openapi-directory\APIs\vimeo.com\3.4", settings); Assert.Contains("warning CS8669", errorText); Assert.Contains("error CS0453", errorText); }
public void Test_wordassociations_net_1_0() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\wordassociations.net\1.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_wmata_com_rail_station_1_0() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\wmata.com\rail-station\1.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_wikimedia_org_1_0_0() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\wikimedia.org\1.0.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_who_hosts_this_com_0_0_1() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\who-hosts-this.com\0.0.1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_whapi_com_accounts_2_0_0() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\whapi.com\accounts\2.0.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_hackathonwatch() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\hackathonwatch.com\0.1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_mercure() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\mercure.local\0.3.2", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_geolocation() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\ip2location.com\geolocation\1.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_traccar_org_4_6() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\traccar.org\4.6", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_surrey_ca_open511_0_1() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\surrey.ca\open511\0.1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_spotify_com_v1() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\spotify.com\v1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_tisane() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\tisane.ai\1.0.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_bcgnws() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\gov.bc.ca\bcgnws\3.x.x", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_zenoti_com_1_0_0() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\zenoti.com\1.0.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_math() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\math.tools\1.5", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_zoomconnect_com_1() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\zoomconnect.com\1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_vocadb_net_v1() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\vocadb.net\v1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_football() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\rapidapi.com\football-prediction\2", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_getcitymatch() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\interzoid.com\getcitymatch\1.0.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_twilio_com_2010_04_01() //pretty complex path and query { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\twilio.com\2010-04-01", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_randommer() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\randommer.io\v1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_uebermaps_com_2_0() { helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\uebermaps.com\2.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }
public void Test_ritekit() { helper.GenerateFromOpenApiAndBuild(@"C:\VSProjects\Study\openapi-directory\APIs\ritekit.com\1.0.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters)); }