Пример #1
0
        public static async Task <dynamic> GetCardBrandByName(string name)
        {
            var serviceBandeiraCartao = new CardBrandService(_httpClient);
            var resultBandeiraCartao  = await serviceBandeiraCartao.GetByNameCardBrand(requestUri, name);

            return(resultBandeiraCartao);
        }
        public async Task Get_ByNameCardBrand()
        {
            string info = "ALTERADO...";

            var service = new CardBrandService(_httpClient);
            var result  = await service.GetByNameCardBrand(requestUri, info);

            // Assert
            Assert.False(result.Status == HttpStatusCode.BadRequest, "ERROR");
            Assert.True(result.Status == HttpStatusCode.OK, "OK");
        }