Esempio n. 1
0
 public void MediaTest()
 {
     PicasaEntry target = new PicasaEntry(); // TODO: Initialize to an appropriate value
     MediaGroup expected = new MediaGroup();
     MediaGroup actual;
     target.Media = expected;
     actual = target.Media;
     Assert.AreEqual(expected, actual);
 }
 public PicasaWebPhoto(PicasaEntry photo, string albumName)
 {
     PhotoAccessor pa = new PhotoAccessor(photo);
     this.m_accessId = pa.Id;
     this.m_media = photo.Media;
     this.m_id = photo.Id.Uri.ToString();
     this.m_title = photo.Title.Text;
     this.m_albumName = albumName;
     this.m_height = pa.Height;
     this.m_width = pa.Width;
     this.m_uploaded = photo.Updated.ToShortDateString() + " " + photo.Updated.ToShortTimeString();
     this.m_location = (string)photo.Media.Content.Attributes["url"];
     pa = null;
 }