Exemplo n.º 1
0
        public void ListOk()
        {
            var service = new CurrencyIdentifierService(new CurrencyLayerConfiguration());
            var result  = service.ListAllCurrencyIdentifier().Result;

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Success);
        }
Exemplo n.º 2
0
        public void ListError()
        {
            var service = new CurrencyIdentifierService(new CurrencyLayerConfiguration()
            {
                AccessKey = "sdasdsad"
            });
            var result = service.ListAllCurrencyIdentifier().Result;

            Assert.IsNotNull(result);
            Assert.IsFalse(result.Success);
        }