public void Service_Emprestimo_Deveria_BuscarTodos() { List <Emprestimo> emprestimos = ObjectMother.GetEmprestimos(); _repository .Setup(l => l.GetAll()).Returns(emprestimos); List <Emprestimo> recebidos = _service.PegarTodos(); _repository.Verify(x => x.GetAll()); recebidos.Should().BeEquivalentTo(emprestimos); }
public void Integration_GetAllLivros_ShouldBeOkay() { List <Emprestimo> emprestimos = _service.PegarTodos(); emprestimos.Count().Should().BeGreaterThan(0); }