public void GetLatest_WithSymbolsSet_ReturnsRatesOnlyForThoseSymbols() { var sut = new FixerIOClient() { Symbols = new[] { "ZAR", "USD" } }; var result = sut.GetLatest(); Assert.True(result.Rates.Any(r => r.Key != "ZAR" && r.Key != "ZAR")); }
public void GetLatest_WithDefaults_ReturnsRates() { var sut = new FixerIOClient(); var result = sut.GetLatest(); Assert.NotNull(result); Assert.NotNull(result.Rates); Assert.True(result.Rates.Any()); Assert.False(string.IsNullOrWhiteSpace(result.Base)); Assert.AreNotEqual(default(DateTime), result.Date); }