public PicasaPhotoBankService(IPicasaPhotoBankRepository photoBankRepository, PicasaAlbumMapper albumMapper, PicasaPhotosMapper photosMapper, PicasaPhotoMapper photoMapper) { this.photoBankRepository = photoBankRepository; this.albumMapper = albumMapper; this.photosMapper = photosMapper; this.photoMapper = photoMapper; }
public void Given_That_I_Have_Albums_In_My_Photo_Library() { // Arrange var mapper = new PicasaAlbumMapper(); var xDoc = XDocument.Load(Resources.AlbumFeed); var feed = SyndicationFeed.Load(xDoc.CreateReader()); // Act var albmus = mapper.GetAlbums(feed); // Assert Assert.AreEqual(albmus.Count, 3); }