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 }));
 }
Exemplo n.º 2
0
 public JsonReducerController()
 {
     var hasDrmSpec = new HasDrmSpecification();
     var hasEpisodes = new HasAtLeaseOneEpisodeSpecification();
     _tvShowSpecification = hasDrmSpec.And(hasEpisodes);
 }