public async Task GetLockedPeriodTests() { var request = new FortnoxApiRequest(this.connectionSettings.AccessToken, this.connectionSettings.ClientSecret); var response = await LockedPeriodService.GetLockedPeriodAsync(request); Assert.IsNull(response.EndDate); }
public void GetLockedPeriodTests() { var response = LockedPeriodService.GetLockedPeriodAsync(new FortnoxApiRequest(this.connectionSettings.AccessToken, this.connectionSettings.ClientSecret) { }).GetAwaiter().GetResult(); Assert.IsTrue(response != null); }