Exemplo n.º 1
0
        public void AUD_Exist()
        {
            ds     = new DivisaService();
            result = ds.DivisaExist(wantedAUD);

            Assert.AreEqual(expectedAUD, result);
        }
Exemplo n.º 2
0
        public void XXX_DoNotExist()
        {
            ds     = new DivisaService();
            result = ds.DivisaExist(wantedXXX);

            Assert.AreEqual(expectedXXX.ToString("0.000000"), result.ToString("0.000000"));
        }
Exemplo n.º 3
0
        public void XXX_DoNotExist()
        {
            //Assert USD to AUD rate is -1

            ds     = new DivisaService();
            result = ds.DivisaExist(wantedXXX);

            Assert.AreEqual(expectedXXX, result);
        }
Exemplo n.º 4
0
        public void EUR_Exist()
        {
            //Assert USD to EUR rate is 0.801093

            ds     = new DivisaService();
            result = ds.DivisaExist(wantedEUR);

            Assert.AreEqual(expectedEUR, result);
        }
Exemplo n.º 5
0
        public double GetDivisa(string currency)
        {
            ds = new DivisaService();

            return(ds.DivisaExist(currency));
        }
Exemplo n.º 6
0
        public string GetCurrencyValue(string currency)
        {
            ds = new DivisaService();

            return(ds.DivisaExist(currency).ToString());
        }