Beispiel #1
0
        public new MovieOptions GetOptions()
        {
            var options = new MovieOptions();

            CopyToOptions(options);
            return(options);
        }
Beispiel #2
0
 public Movie (string id, string parentId, MovieOptions options)
     : base (id, parentId, options)
 {
     StorageMedium = options.StorageMedium;
     DvdRegionCode = options.DvdRegionCode;
     ChannelName = options.ChannelName;
     ScheduledStartTimes = Helper.MakeReadOnlyCopy (options.ScheduledStartTimes);
     ScheduledEndTimes = Helper.MakeReadOnlyCopy (options.ScheduledEndTimes);
 }
Beispiel #3
0
 public Movie(string id, string parentId, MovieOptions options)
     : base(id, parentId, options)
 {
     StorageMedium       = options.StorageMedium;
     DvdRegionCode       = options.DvdRegionCode;
     ChannelName         = options.ChannelName;
     ScheduledStartTimes = Helper.MakeReadOnlyCopy(options.ScheduledStartTimes);
     ScheduledEndTimes   = Helper.MakeReadOnlyCopy(options.ScheduledEndTimes);
 }
Beispiel #4
0
        protected void CopyToOptions (MovieOptions options)
        {
            base.CopyToOptions (options);

            options.StorageMedium = StorageMedium;
            options.DvdRegionCode = DvdRegionCode;
            options.ChannelName = ChannelName;
            options.ScheduledStartTimes = new List<DateTime> (ScheduledStartTimes);
            options.ScheduledEndTimes = new List<DateTime> (ScheduledEndTimes);
        }
Beispiel #5
0
        protected void CopyToOptions(MovieOptions options)
        {
            base.CopyToOptions(options);

            options.StorageMedium       = StorageMedium;
            options.DvdRegionCode       = DvdRegionCode;
            options.ChannelName         = ChannelName;
            options.ScheduledStartTimes = new List <DateTime> (ScheduledStartTimes);
            options.ScheduledEndTimes   = new List <DateTime> (ScheduledEndTimes);
        }
Beispiel #6
0
 static void AssertMovie (Movie movie, MovieOptions options)
 {
     AssertVideoItem (movie, options);
     Assert.AreEqual (movie.StorageMedium, options.StorageMedium);
     Assert.AreEqual (movie.DvdRegionCode, options.DvdRegionCode);
     Assert.AreEqual (movie.ChannelName, options.ChannelName);
     Assert.IsTrue (movie.ScheduledStartTimes.IsReadOnly);
     Assert.IsTrue (movie.ScheduledEndTimes.IsReadOnly);
     CollectionAssert.AreEqual (movie.ScheduledStartTimes, options.ScheduledStartTimes);
     CollectionAssert.AreEqual (movie.ScheduledEndTimes, options.ScheduledEndTimes);
 }
Beispiel #7
0
 static void SetMovieOptions (MovieOptions options)
 {
     SetVideoItemOptions (options);
     options.StorageMedium = "30";
     options.DvdRegionCode = 31;
     options.ChannelName = "32";
     options.ScheduledStartTimes = new[] { DateTime.Now };
     options.ScheduledEndTimes = new[] { DateTime.Now + new TimeSpan (0, 0, 10) };
 }
Beispiel #8
0
 public void MovieInstantiation ()
 {
     var options = new MovieOptions ();
     SetMovieOptions (options);
     var movie = new Movie ("-1", "-1", options);
     AssertMovie (movie, options);
     AssertMovie (movie, movie.GetOptions ());
 }
Beispiel #9
0
 public new MovieOptions GetOptions ()
 {
     var options = new MovieOptions ();
     CopyToOptions (options);
     return options;
 }