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