예제 #1
0
        public static async Task <dynamic> GetCardTypeByName(string name)
        {
            var serviceTipoCartao = new CardTypeService(_httpClient);
            var resultTipoCartao  = await serviceTipoCartao.GetByNameCardType(requestUri, name);

            return(resultTipoCartao);
        }
        public async Task Get_ByNameCardType()
        {
            string info = "ALTERADO...";

            var service = new CardTypeService(_httpClient);
            var result  = await service.GetByNameCardType(requestUri, info);

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