public void WhenReducingThenResultContainsOnlyMatchingShows()
        {
            var query = new JsonReducerQuery
                {
                    Payload = new List<TvShow>
                        {
                            new TvShow { Drm = true, EpisodeCount = 1 },
                            new TvShow { Drm = false, EpisodeCount = 1 },
                            new TvShow { Drm = true, EpisodeCount = 0 },
                        }
                };

            var sut = new JsonReducerController();
            var result = sut.Post(query);

            Assert.AreEqual(1, result.Response.Count);
        }
        public void WhenReducingThenResultContainsOnlyMatchingShows()
        {
            var specMock = Substitute.For<ISpecification<TvShow>>();
            specMock.IsSatisfiedBy(Arg.Any<TvShow>()).Returns(true);

            var query = new JsonReducerQuery
                {
                    Payload = new List<TvShow>
                        {
                            new TvShow()
                        }
                };

            var sut = new JsonReducerController(specMock);
            var result = sut.Post(query);

            Assert.AreEqual(1, result.Response.Count);
        }