public async Task GetOneCallAsync_IfApiKeyEmptyOrNull_ThrowArgumentException() { ApiHelper.InitializeClient(); _sut.ApiKey = null; await Assert.ThrowsAsync <ArgumentException>(() => _sut.GetOneCallAsync()); }
public async Task GetOneCallAsync_IfApiKeyEmptyOrNull_ThrowArgumentException() { _sut = OpenWeatherProcessor.Instance; _sut.ApiKey = null; //_sut.ApiKey = ""; await Assert.ThrowsAsync <ArgumentException>(() => _sut.GetOneCallAsync()); }
public async Task GetOneCallAsync_IfApiHelperNotInitialized_ThrowArgumentException() { _sut = OpenWeatherProcessor.Instance; ApiHelper.ApiClient = null; await Assert.ThrowsAsync <ArgumentException>(() => _sut.GetOneCallAsync()); }