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