public void Service_Buscar_Lancamento_Por_Id_Sucesso() { //prepare var lancamento = Builder <LancamentoFinanceiro> .CreateNew().Build(); _lancamentoRepositorioMock.Setup(_ => _.BuscarPorId(It.IsAny <int>())).Returns(lancamento); //action var lancamentos = _lancamentoServices.BuscarLancamentoFinanceiroPorId(1); //assert _lancamentoRepositorioMock.Verify(); Assert.IsNotNull(lancamentos); }