Beispiel #1
0
        public async Task GetRoutesQueueAsync_WhenRoutesExist_ReturningRoutesQueued()
        {
            var result = await _queueRepository.GetRoutesQueueAsync();

            Assert.IsInstanceOf <IEnumerable <RouteQueued> >(result);
            Assert.IsTrue(result.Count() > 0);
        }
Beispiel #2
0
        public async Task <IEnumerable <QueuesRouteDto> > GetRoutesQueueAsync()
        {
            var routes = await _repository.GetRoutesQueueAsync();

            var result = _mapper.Map <IEnumerable <RouteQueued>, IEnumerable <QueuesRouteDto> >(routes);

            return(result);
        }