예제 #1
0
        public void ServiceA_FilterByYear()
        {
            var resp = _movieController.FilterMovie(new FilterMovie
            {
                Year = 1985
            }) as OkObjectResult;

            Assert.IsNotNull(resp);

            Assert.IsInstanceOfType(resp, typeof(OkObjectResult));

            Assert.AreEqual("Back to the Future", resp.Value.As <List <MovieDetail> >()
                            .FirstOrDefault().Title);
        }