public new MusicVideoClipOptions GetOptions() { var options = new MusicVideoClipOptions(); CopyToOptions(options); return(options); }
public MusicVideoClip (string id, string parentId, MusicVideoClipOptions options) : base (id, parentId, options) { Date = options.Date; StorageMedium = options.StorageMedium; Artists = Helper.MakeReadOnlyCopy (options.Artists); Albums = Helper.MakeReadOnlyCopy (options.Albums); ScheduledStartTimes = Helper.MakeReadOnlyCopy (options.ScheduledStartTimes); ScheduledEndTimes = Helper.MakeReadOnlyCopy (options.ScheduledEndTimes); Contributors = Helper.MakeReadOnlyCopy (options.Contributors); }
public MusicVideoClip(string id, string parentId, MusicVideoClipOptions options) : base(id, parentId, options) { Date = options.Date; StorageMedium = options.StorageMedium; Artists = Helper.MakeReadOnlyCopy(options.Artists); Albums = Helper.MakeReadOnlyCopy(options.Albums); ScheduledStartTimes = Helper.MakeReadOnlyCopy(options.ScheduledStartTimes); ScheduledEndTimes = Helper.MakeReadOnlyCopy(options.ScheduledEndTimes); Contributors = Helper.MakeReadOnlyCopy(options.Contributors); }
protected void CopyToOptions (MusicVideoClipOptions options) { base.CopyToOptions (options); options.Date = Date; options.StorageMedium = StorageMedium; options.Artists = new List<PersonWithRole> (Artists); options.Albums = new List<string> (Albums); options.ScheduledStartTimes = new List<DateTime> (ScheduledStartTimes); options.ScheduledEndTimes = new List<DateTime> (ScheduledEndTimes); options.Contributors = new List<string> (Contributors); }
protected void CopyToOptions(MusicVideoClipOptions options) { base.CopyToOptions(options); options.Date = Date; options.StorageMedium = StorageMedium; options.Artists = new List <PersonWithRole> (Artists); options.Albums = new List <string> (Albums); options.ScheduledStartTimes = new List <DateTime> (ScheduledStartTimes); options.ScheduledEndTimes = new List <DateTime> (ScheduledEndTimes); options.Contributors = new List <string> (Contributors); }
static void AssertMusicVideoClip (MusicVideoClip musicVideoClip, MusicVideoClipOptions options) { AssertVideoItem (musicVideoClip, options); Assert.AreEqual (musicVideoClip.StorageMedium, options.StorageMedium); Assert.AreEqual (musicVideoClip.Date, options.Date); Assert.IsTrue (musicVideoClip.Artists.IsReadOnly); Assert.IsTrue (musicVideoClip.Albums.IsReadOnly); Assert.IsTrue (musicVideoClip.ScheduledStartTimes.IsReadOnly); Assert.IsTrue (musicVideoClip.ScheduledEndTimes.IsReadOnly); Assert.IsTrue (musicVideoClip.Contributors.IsReadOnly); CollectionAssert.AreEqual (musicVideoClip.Artists, options.Artists); CollectionAssert.AreEqual (musicVideoClip.Albums, options.Albums); CollectionAssert.AreEqual (musicVideoClip.ScheduledStartTimes, options.ScheduledStartTimes); CollectionAssert.AreEqual (musicVideoClip.ScheduledEndTimes, options.ScheduledEndTimes); CollectionAssert.AreEqual (musicVideoClip.Contributors, options.Contributors); }
static void SetMusicVideoClipOptions (MusicVideoClipOptions options) { SetVideoItemOptions (options); options.StorageMedium = "39"; options.Date = "40"; options.Artists = new[] { new PersonWithRole ("artist", "role") }; options.Albums = new[] { "album" }; options.ScheduledStartTimes = new[] { DateTime.Now }; options.ScheduledEndTimes = new[] { DateTime.Now + new TimeSpan (0, 0, 10) }; options.Contributors = new[] { "contributor" }; }
public void MusicVideoClipInstantiation () { var options = new MusicVideoClipOptions (); SetMusicVideoClipOptions (options); var music_video_clip = new MusicVideoClip ("-1", "-1", options); AssertMusicVideoClip (music_video_clip, options); AssertMusicVideoClip (music_video_clip, music_video_clip.GetOptions ()); }
public new MusicVideoClipOptions GetOptions () { var options = new MusicVideoClipOptions (); CopyToOptions (options); return options; }