public async Task Get_AllCardBrand()
        {
            var service = new CardBrandService(_httpClient);
            var result  = await service.GetAllCardBrands(requestUri);

            // Assert
            Assert.False(result.Status == HttpStatusCode.BadRequest, "ERROR");
            Assert.True(result.Status == HttpStatusCode.OK, "OK");
        }
Ejemplo n.º 2
0
        public static async Task <dynamic> InformationCombo()
        {
            var serviceBandeiraCartao = new CardBrandService(_httpClient);
            var resultBandeiraCartao  = await serviceBandeiraCartao.GetAllCardBrands(requestUri);

            List <string> cardBrand = new List <string>();

            foreach (var item in resultBandeiraCartao.Data)
            {
                cardBrand.Add(item.Name);
            }

            return(cardBrand);
        }