コード例 #1
0
        public void TestPet_DecorateDataModelWithPropertyName()
        {
            var settings = CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.Default);

            settings.DecorateDataModelWithPropertyName = true;
            helper.GenerateAndAssertAndBuild("SwagMock\\pet.yaml", "Results\\Pet_DecorateDataModelWithPropertyName.txt", settings);
        }
コード例 #2
0
        public void TestPet_UseCSharpNullable()
        {
            var settings = CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.Default);

            settings.UseNullableQuestionMark = true;
            helper.GenerateAndAssertAndBuild("SwagMock\\pet.yaml", "Results\\PetNullable.txt", settings);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        public void TestPet_EnumToString()
        {
            var settings = CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.Default);

            settings.EnumToString = true;
            helper.GenerateAndAssert("SwagMock\\pet.yaml", "NG2Results\\Pet_EnumToString.txt", settings);
        }
コード例 #5
0
        public void TestPet_DisableSystemNullableByDefault()
        {
            var settings = CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.Default);

            settings.DisableSystemNullableByDefault = true;
            helper.GenerateAndAssertAndBuild("SwagMock\\pet.yaml", "Results\\Pet_DisableSystemNullableByDefault.txt", settings);
        }
コード例 #6
0
        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);
        }
コード例 #7
0
        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);
        }
コード例 #8
0
 public void Test_wordassociations_net_1_0()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\wordassociations.net\1.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #9
0
 public void Test_wmata_com_rail_station_1_0()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\wmata.com\rail-station\1.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #10
0
 public void Test_wikimedia_org_1_0_0()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\wikimedia.org\1.0.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #11
0
 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));
 }
コード例 #12
0
 public void Test_whapi_com_accounts_2_0_0()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\whapi.com\accounts\2.0.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #13
0
 public void Test_hackathonwatch()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\hackathonwatch.com\0.1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #14
0
 public void Test_mercure()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\mercure.local\0.3.2", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #15
0
 public void Test_geolocation()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\ip2location.com\geolocation\1.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #16
0
 public void Test_traccar_org_4_6()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\traccar.org\4.6", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #17
0
 public void Test_surrey_ca_open511_0_1()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\surrey.ca\open511\0.1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #18
0
 public void Test_spotify_com_v1()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\spotify.com\v1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #19
0
 public void Test_tisane()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\tisane.ai\1.0.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #20
0
 public void Test_bcgnws()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\gov.bc.ca\bcgnws\3.x.x", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #21
0
 public void Test_zenoti_com_1_0_0()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\zenoti.com\1.0.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #22
0
 public void Test_math()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\math.tools\1.5", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #23
0
 public void Test_zoomconnect_com_1()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\zoomconnect.com\1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #24
0
 public void Test_vocadb_net_v1()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\vocadb.net\v1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #25
0
 public void Test_football()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\rapidapi.com\football-prediction\2", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #26
0
 public void Test_getcitymatch()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\interzoid.com\getcitymatch\1.0.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #27
0
 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));
 }
コード例 #28
0
 public void Test_randommer()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\randommer.io\v1", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #29
0
 public void Test_uebermaps_com_2_0()
 {
     helper.GenerateFromOpenApiAndBuild(@"..\..\..\..\openapi-directory\APIs\uebermaps.com\2.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }
コード例 #30
0
 public void Test_ritekit()
 {
     helper.GenerateFromOpenApiAndBuild(@"C:\VSProjects\Study\openapi-directory\APIs\ritekit.com\1.0.0", CodeGenSettings.WithActionNameStrategy(ActionNameStrategy.PathMethodQueryParameters));
 }