This commit is contained in:
18
util.cs
18
util.cs
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user