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