public void Service_Emitente_PegarTodosOsEmitentes_DevePassar()
        {
            //Arrange
            var emitente       = ObjectMother.GetEmitenteValido();
            var listaEmitentes = new List <Emitente>()
            {
                emitente
            }.AsQueryable();

            _repositoryFake.Setup(pr => pr.GetAll()).Returns(listaEmitentes);
            //Action
            var recebidos = _service.GetAll();

            //Assert
            _repositoryFake.Verify(pr => pr.GetAll(), Times.Once);
            recebidos.Should().NotBeNull();
            recebidos.Count().Should().Be(listaEmitentes.Count());
            recebidos.First().Should().Be(listaEmitentes.First());
        }
        public IHttpActionResult Get(ODataQueryOptions <Emitente> queryOptions)
        {
            var quantidade = Request.GetQueryQuantidadeExtension();

            return(HandleQueryable <Emitente, EmitenteViewModel>(_emitenteService.GetAll(), queryOptions));
        }