Exemplo n.º 1
0
        public async Task GetTranslated_ServiceReturnsNull_ReturnsNotFound()
        {
            _mockPokemonService.Setup(ps => ps.GetPokemon(It.IsAny <string>())).ReturnsAsync((Pokemon)null);

            var getResult = await _controller.GetTranslated("name");

            Assert.IsInstanceOfType(getResult.Result, typeof(NotFoundResult));
        }