Beispiel #1
0
        public async Task GetOneCallAsync_IfApiKeyEmptyOrNull_ThrowArgumentException()
        {
            ApiHelper.InitializeClient();

            _sut.ApiKey = null;

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