public StartSession ( |
||
timeZone | Sets default timezone for all subsequent requests using returned session_id. | |
return | Task |
public async Task StartSession_WithAllTimeZones(ApiKeySyncanoClient client) { //given var timeZones = TimeZoneInfo.GetSystemTimeZones(); var sessionIds = new List<string>(); //when foreach (var timeZoneInfo in timeZones) { try { sessionIds.Add(await client.StartSession(timeZoneInfo)); client.ClearSession(); } catch(ArgumentException) { } } //then foreach (var sessionId in sessionIds) { sessionId.ShouldNotBeNull(); } }
public async Task StartSession_WithUtcTimezone(ApiKeySyncanoClient client) { //when var result = await client.StartSession(TimeZoneInfo.Utc); //then result.ShouldNotBeNull(); }