fibercrypto / libskyfiber-dotnet

Skycoin client libraries for .NET ( C# )
1 stars 4 forks source link

Test for wrapper for skycoin RestApi #64

Closed hsequeda closed 5 years ago

hsequeda commented 5 years ago

Fixes #67

Changes: -Changing the name of the 'seq' variable to 'seqs' in the method Block,BlockWithHttpInfo,BlockAsync,BlockAsyncWithHttpInfo. -Changed in the method method Walletseedverifywithhtpinfo and Walletseedverifyasyncwithhtpinfo that the variable 'seed' is passed by body and not by header. -In the Model/BlockVerboseSchemaHeader.cs file the parameter fee changed from int to long. -In the Api / DefaultApi.cs file, in the BlocksWithHttpInfo and BlockAsyncWithHttpInfo methods changed line 3742 and 3813: queryParams.AddRange (this.Configuration.ApiClient.ParameterToKeyValuePairs ("multi", nameof (seqs), (object) seqs) by queryParams.AddRange (this.Configuration.ApiClient.ParameterToKeyValuePairs ("", nameof (seqs), string.Join (",", seqs))) ;. -In the Api / DefaultApi.cs file in the Block and BlockAsync method type List by BlockSchema. -In the file Api / DefaultApi.cs in the method BlockWithHttpInfo and BlockAsyncWithHttpInfo the type ApiResponse <List > by ApiResponse . -added to the ApiV1RawtxGet, ApiV1RawtxGetAsync, ApiV1RawtxGetWithHttpInfo and ApiV1RawtxGetAsyncWithHttpInfo methods the (string txid) parameter. -Created 25 tests: VersionTest, WalletSeedVerifyTest, InstanceTest, AddressCountTest, AddressUxoutsTest, BalanceGetTest, BalancePostTest, BlockTest, BlocksTest, CoinSupplyTest, DefaultConnectionsTest, BlockchainMetadataTest, BlockchainProgessTest, LastBlocksTest, HealthTest, NetworkConnectionsTest, NetworkConnectionsExchangeTest, NetworkConnectionsTrustTest, OutputsGetTest, OutputPostTest, TransactionsGetTest, TransactionsPostTest, PendingTxsTest, ResendUnconfirmedTxnsTest, RichlistTest. -Change parameters of OutputsPost, OutputPostWithHttpInfo, OutputsPostAsync, OutputsPostsAsyncWithHttpInfo methods from (string address=null,string hashes=null) to (Listaddress=null, Listhashes=null). -In the OutputsGetWithHttpInfo ,OutputsPostWithHttpInfo, OutputsGetAsyncWithHttpInfo and OutputsPostAsyncWithHttpInfo methods changed from : if (address != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "address", address)); if (hash != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "hash", hash)); to: if (address != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "addrs", string.Join(",", address))); if (hash != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "hashes", string.Join(",", hash))); . -Changed the return of the methods Apiv1RawtxGetWithHttpInfo and Apiv1RawtxGetAsyncWithHttpInfo from string to object. -Added to ApiV1RawtxGetWithHttpInfo and ApiV1RawtxGetAsyncWithHttpInfo methods : localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "txid", txid)); -Changed in the DataPOSTWithHttpInfo and DataPOSTAsyncWithHttpInfo methods: if (type != null) localVarHeaderParams.Add("type",Configuration.ApiClient.ParameterToString(type)); if (key != null) localVarHeaderParams.Add("key",Configuration.ApiClient.ParameterToString(key)); if (val != null) localVarHeaderParams.Add("val",Configuration.ApiClient.ParameterToString(val)); for: localVarPostBody = JsonConvert.SerializeObject(new{ type=type, key=key, val=val }); -Changed in the DataGetWithHttpInfo and DataGetAsyncWithHttpInfo methods: if (type != null) localVarHeaderParams.Add("type",Configuration.ApiClient.ParameterToString(type)); if (key != null)
localVarHeaderParams.Add("key",Configuration.ApiClient.ParameterToString(key)); for: localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "type", type)); if (key != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "key", key)); -Changed in the DataDeleteWithHttpInfo and DataDeleteAsyncWithHttpInfo methods: if (type != null) localVarHeaderParams.Add("type",Configuration.ApiClient.ParameterToString(type)); if (key != null)
localVarHeaderParams.Add("key",Configuration.ApiClient.ParameterToString(key)); for: localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "type", type)); if (key != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "key", key));

Does this change need to mentioned in CHANGELOG.md?

Yes