public void WhenCombiningSpecificationsThenResultIsAndSpecification() { var hasDrm = new HasDrmSpecification(); var hasEps = new HasAtLeaseOneEpisodeSpecification(); var sut = hasDrm.And(hasEps); Assert.IsInstanceOf<AndSpecification<TvShow>>(sut); Assert.IsTrue(sut.IsSatisfiedBy(new TvShow { Drm = true, EpisodeCount = 1 })); }
public JsonReducerController() { var hasDrmSpec = new HasDrmSpecification(); var hasEpisodes = new HasAtLeaseOneEpisodeSpecification(); _tvShowSpecification = hasDrmSpec.And(hasEpisodes); }
public void SetUp() { SubjectUnderTest = new HasAtLeaseOneEpisodeSpecification(); }