public async Task GetAll_ReturnsAnIEnumerableOfEpisodeViewModels() { var mapper = CreateAutoMapper(); var episodeServiceMock = new Mock <IEpisodeService>(); episodeServiceMock.Setup(s => s.ListAllAsync()) .Returns(Task.FromResult(GetTestEpisodes())); var controller = new EpisodeController(mapper, episodeServiceMock.Object); var result = await controller.GetAll(); Assert.IsType <List <EpisodeViewModel> >(result); }