// In future we can replace this with API Controller
        // Curenttly Angular Client call this method and return Json result
        // Used AutoMapper for Mapping
        public async Task <ActionResult> SearchMovieDetails(string searchTerm)
        {
            try
            {
                var result = await _omdpService.SearchMovie(searchTerm);

                return(Json(Mapper.Map <IEnumerable <MovieSearch>, IEnumerable <MovieViewModel> >(result.Search), JsonRequestBehavior.AllowGet));
            }
            catch (Exception e)
            {
                return(Content(e.Message));
            }
        }
        // Test Case for SearchMovie - OmdbRequestService - Response True
        public void SearchMovieTest()
        {
            var target = omdbService.SearchMovie("Dragon");

            var result = Task.Run(() => target).Result;

            Assert.IsTrue(result.TotalResults > 0);
            Assert.IsNotNull(result.Search.First().Title);
            Assert.IsTrue(result.Search.Where(r => r.Title.ToLower().Contains("dragon")).Count() > 0);
            Assert.IsNotNull(result.Search.First().ImdbId);
            Assert.IsNotNull(result.Search.First().Type);
            Assert.IsNotNull(result.Search.First().Year);
        }