Beispiel #1
0
        public void Service_Bolao_Deveria_Buscar_Todos_Os_Boloes()
        {
            List <Bolao> boloes = ObjectMother.GetBoloes();

            _repository
            .Setup(x => x.GetAll())
            .Returns(boloes);

            List <Bolao> recebidos = _service.PegarTodos();

            _repository.Verify(x => x.GetAll());
            recebidos.Should().BeEquivalentTo(boloes);
        }
Beispiel #2
0
        public void Integration_PegarTodosOsBoloes_Corretamente()
        {
            List <Bolao> boloes = _service.PegarTodos();

            boloes.Count.Should().BeGreaterThan(0);
        }