public void SetMaturityRating_ShouldGetCorrectIsFamilyFriendly(MaturityRatingType rating, bool isFriendly)
        {
            StreamingContent content = new StreamingContent("Content Title", "Title", 4, StreamingQualityType.Hd1080p, "description", LanguageType.English, rating);

            bool actual   = content.IsFamilyFriendly;
            bool expected = isFriendly;

            Assert.AreEqual(expected, actual);
        }
 public StreamingContent(string genre, string title, int starRating, StreamingQualityType typeOfQuality, string description, LanguageType language, MaturityRatingType maturityRating)
 {
     Genre                  = genre;
     Title                  = title;
     StarRating             = starRating;
     TypeOfStreamingQuality = typeOfQuality;
     Description            = description;
     Language               = language;
     MaturityRating         = maturityRating;
 }
Beispiel #3
0
 public Movie(string genre, string title, int starRating, StreamingQualityType typeOfQuality, string description, LanguageType language, MaturityRatingType maturityRating, double runTime)
 // calling streamingContent Constructor
     : base(genre, title, starRating, typeOfQuality, description, language, maturityRating)
 {
     RunTime = runTime;
 }
Beispiel #4
0
 public Show(string genre, string title, int starRating, StreamingQualityType typeOfQuality, string description, LanguageType language, MaturityRatingType maturityRating, List <Episode> episodes)
 // calling streamingContent Constructor
     : base(genre, title, starRating, typeOfQuality, description, language, maturityRating)
 {
     Episodes = episodes;
 }