public async Task CalculateDistance_ReturnValue() { ISSTrackerApi api = new ISSTrackerApi(); await api.AddRecord(); await api.AddRecord(); Assert.AreNotEqual(0, api.CalculateDistanceFromAllRecords()); }
public async Task AddRecord_CorrectRecordAdded() { ISSTrackerApi api = new ISSTrackerApi(); await api.AddRecord(); Assert.AreEqual(1, api.RecordCount()); }
public void AddRecord_NoConnection_Throws() { ISSTrackerApi api = new ISSTrackerApi(); Assert.ThrowsAsync <HttpRequestException>(async() => await api.AddRecord()); }