public void GetAllShouldReturnAluguelList() { //Arrange var listaAluguel = new List <Aluguel> { new Aluguel(10, 100, "Comprador", DateTime.Now, DateTime.Now) }; aluguelRepository.GetAll().Returns(listaAluguel); //Act var result = service.GetAll(); //Assert result.Should().NotBeNull(); result.Should().Equals(listaAluguel); aluguelRepository.Received().GetAll(); }