public void UpdateProduct() { var produto = ProductBuilder.Create .WithCode("testCode") .WithName("testName") .WithDepartment("testDepartament") .Instance(); repositorioMock.Setup(x => x.Edit(It.IsAny <Product>())).Verifiable(); mapper.Setup(x => x.Map <Product>(It.IsAny <EditProductDto>())) .Returns(() => produto); productApplication.Edit(new EditProductDto()); }