public async Task Deve_Consultar_Por_Cnpj_e_bandeira() { // Arrange var listaTransicao = new List <Transacao>(); listaTransicao.Add(new Transacao { MerchantCnpj = "77404852000179", AcquirerAuthorizationDateTime = DateTime.Now, CardBrandName = Const.Mastercard }); transacaoServiceMock .Setup(x => x.ConsultaPorCnpjEBandeira("77404852000179", Const.Mastercard)) .ReturnsAsync(listaTransicao); // Act var result = await ControllerUnderTest.ConsultaPorCnpjEBandeira("77404852000179", Const.Mastercard); // Assert var okResult = Assert.IsType <OkObjectResult>(result); Assert.Same(listaTransicao, okResult.Value); }