This commit is contained in:
2019-12-10 23:36:55 +00:00
parent 7f3a6a312e
commit ec33613920
2 changed files with 23 additions and 13 deletions

18
util.cs
View File

@@ -11,7 +11,7 @@ namespace raven_integration
public static class Util
{
//#######################################################################################################
public static string API_BASE_URL = "http://localhost:7575/api/v8/";
public static string API_BASE_URL = "http://localhost:7575/api/v8/";
//public static string API_BASE_URL = "https://test.helloayanova.com/api/v8.0/";
public static string TEST_DATA_FOLDER = @"..\..\..\testdata\";
@@ -35,12 +35,26 @@ namespace raven_integration
private static HttpClient client { get; } = new HttpClient();
public static ConcurrentDictionary<string, string> authDict = new ConcurrentDictionary<string, string>();//10,32
private static AutoId Auto { get; } = new AutoId(0);
//DateTime stuff
public static DateTime RelativeToday()
{
Double TimeZoneAdjustment = ((double)TIME_ZONE_ADJUSTMENT) * -1;
return DateTime.Today.AddHours(TimeZoneAdjustment);
}
public static DateTime RelativeNow()
{
Double TimeZoneAdjustment = ((double)TIME_ZONE_ADJUSTMENT) * -1;
return DateTime.Now.AddHours(TimeZoneAdjustment);
}
public static string Uniquify(string s)
{
// return s + " " + Auto.GetNext().ToString();