Example #1
0
        public IActionResult GetCharacterRatingContextInfos()
        {
            _logger.LogInformation($"Controller Method invoked: {nameof(GetCharacterRatingContextInfos)}");

            IEnumerable <CharacterRatingContextInfo> model = _characterRatingLogic.GetCharacterRatingContextInfos();

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

            return(new ObjectResult(result));
        }
Example #2
0
        public void CharacterRatingContextInfos_Retrieved_Success()
        {
            IEnumerable <CharacterRatingContextInfo> results = _characterRatingLogic.GetCharacterRatingContextInfos();

            Assert.IsNotNull(results);
        }