-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2822af0
commit 0bb79ec
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using NUnit.Framework; | ||
using System.Threading.Tasks; | ||
|
||
namespace Accuweather.Tests | ||
{ | ||
public class Indices | ||
{ | ||
private IAccuweatherApi _api; | ||
|
||
[SetUp] | ||
public void Init() | ||
{ | ||
var apiKey = TestHelper.ApiKey; | ||
var language = TestHelper.Language; | ||
_api = new AccuweatherApi(apiKey, language); | ||
} | ||
|
||
[Test] | ||
public async Task FiveDaysOfDailyIndexValues() | ||
{ | ||
var resultJson = await _api.Indices.FiveDaysOfDailyIndexValues(178087, true); | ||
TestHelper.StatusCodeIsOk(resultJson); | ||
} | ||
|
||
[Test] | ||
public async Task TwelveHoursOfHourlyForecasts() | ||
{ | ||
var resultJson = | ||
await _api.Indices.FiveDaysOfDailyIndexValuesByGroupIndex(178087, 50, true); | ||
TestHelper.StatusCodeIsOk(resultJson); | ||
} | ||
|
||
[Test] | ||
public async Task FiveDaysOfDailyIndexValuesBySpecificIndex () | ||
{ | ||
var resultJson = | ||
await _api.Indices.FiveDaysOfDailyIndexValuesBySpecificIndex(178087, 087, true); | ||
TestHelper.StatusCodeIsOk(resultJson); | ||
} | ||
} | ||
} |