Exemple #1
0
        public void Getir_CorrectResponse_WhenWithCorrectParameters()
        {
            var request = new TcmbKurRequest {
                Kod = "USD", Tip = DovizType.ALIS
            };
            var result = new TcmbKurlar().Getir(request);

            Assert.True(result is TcmbKurResponse);
        }
Exemple #2
0
        public void Satis_CorrectResponse_WhenWithKur()
        {
            var result = new TcmbKurlar().Satis("USD");

            Assert.True(result is TcmbKurResponse);
        }
Exemple #3
0
        public void Aktar_CorrectResponse_WhenWithSort()
        {
            var result = new TcmbKurlar().Aktar(TcmbAktarFormat.CSV, TcmbKurSort.ASC);

            Assert.True(result is string);
        }
Exemple #4
0
        public void GetirListe_CorrectResponse_WhenWithSort()
        {
            var result = new TcmbKurlar().GetirListe(DovizType.ALIS, TcmbKurSort.ASC);

            Assert.True(result is List <TcmbKurResponse>);
        }
Exemple #5
0
        public void Satis_CorrectResponse_WhenWithDovizType()
        {
            var result = new TcmbKurlar().Satis("USD", DovizType.SATIS);

            Assert.True(result is TcmbKurResponse);
        }