public async Task AvailablePeriodsAsyncTest() { // Arrange IAccountsService accountsService = _scope.ServiceProvider.GetServices <IAccountsService>().FirstOrDefault(); Assert.NotNull(accountsService); // Act AccountStatementPeriods availablePeriods = await accountsService.AvailablePeriodsAsync(_starlingClient, _accountUid); // Assert Assert.NotNull(availablePeriods); Assert.NotNull(availablePeriods.Periods); Assert.NotEmpty(availablePeriods.Periods); }