1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-14 09:52:53 +00:00

Added unit tests, added solution, added travis build

This commit is contained in:
JKorf
2018-03-07 10:32:57 +01:00
parent 27fb92f999
commit 94eb269ade
29 changed files with 339 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
using System.Collections.Generic;
namespace CryptoExchange.Net
{
public static class ExtensionMethods
{
public static void AddParameter(this Dictionary<string, object> parameters, string key, string value)
{
parameters.Add(key, value);
}
public static void AddParameter(this Dictionary<string, object> parameters, string key, object value)
{
parameters.Add(key, value);
}
public static void AddOptionalParameter(this Dictionary<string, object> parameters, string key, object value)
{
if(value != null)
parameters.Add(key, value);
}
public static void AddOptionalParameter(this Dictionary<string, string> parameters, string key, string value)
{
if (value != null)
parameters.Add(key, value);
}
}
}