public void Test_EmprestimoService_GetById_Test_Should_BeOk() { _mock.Setup(x => x.GetById(_emprestimo.Id)).Returns(_emprestimo); var obtido = Alvo.GetById(_emprestimo.Id); _mock.Verify(x => x.GetById(_emprestimo.Id)); obtido.Should().Be(_emprestimo); }