예제 #1
0
        public void AltemaCharacterRating_Retrieved_Success()
        {
            IEnumerable <AltemaCharacterInfo> results = _characterRatingLogic.GetAltemaCharacterInfos();

            WriteAltemaCharacterResultToConsole(results);

            Assert.IsNotNull(results);
        }
예제 #2
0
        public IActionResult GetAltemaCharacterInfos()
        {
            _logger.LogInformation($"Controller Method invoked: {nameof(GetAltemaCharacterInfos)}");

            IEnumerable <AltemaCharacterInfo> model = _characterRatingLogic.GetAltemaCharacterInfos();

            IEnumerable <D.AltemaCharacterInfo> result = _mapper.Map <IEnumerable <D.AltemaCharacterInfo> >(model);

            return(new ObjectResult(result));
        }