Exemplo n.º 1
0
        public async Task Call_Tax_ShouldReturn_CorretValue()
        {
            var client = _factory.GetDefaultClient();

            var response = await client.GetAsync("/taxajuros");

            response.EnsureSuccessStatusCode();

            var tax = await HttpResponseMessageHelpers.GetResponseContent <double>(response);

            var correctTax = 0.01;

            Assert.Equal(correctTax, tax);
        }