public void ListOk() { var service = new CurrencyIdentifierService(new CurrencyLayerConfiguration()); var result = service.ListAllCurrencyIdentifier().Result; Assert.IsNotNull(result); Assert.IsTrue(result.Success); }
public void ListError() { var service = new CurrencyIdentifierService(new CurrencyLayerConfiguration() { AccessKey = "sdasdsad" }); var result = service.ListAllCurrencyIdentifier().Result; Assert.IsNotNull(result); Assert.IsFalse(result.Success); }