Beispiel #1
0
        public void ClearFlickr()
        {
            var temporaryAlbum = DateTime.Now.ToLongTimeString();

            commonOperations.CreateAlbum(temporaryAlbum);
            MoveSinglePhotosToAlbum(temporaryAlbum);

            var albums = this.manager.GetAlbums();

            foreach (var album in albums)
            {
                var checkAlbum = commonOperations.GetAlbumById(album.AlbumId.Id);
                if (checkAlbum != null)
                {//if we remove all pictures in previous iteration, album won't exist anymore
                    DeleteAlbumExceptionSafe(album, true);
                }
            }
        }