Exemple #1
0
 public async Task ShouldCorrectlyGetUserAlbumVideosByMe()
 {
     await AuthenticatedClient.WithTempVideo(async clipId =>
     {
         await AuthenticatedClient.WithTestAlbum(async albumId =>
         {
             await AuthenticatedClient.AddToAlbumAsync(UserId.Me, albumId, clipId);
             var videos = await AuthenticatedClient.GetAlbumVideosAsync(UserId.Me, albumId);
             videos.ShouldNotBeNull();
             videos.Data.Count.ShouldBeGreaterThan(0);
         });
     });
 }
Exemple #2
0
 public async Task ShouldCorrectlyGetAccountAlbumVideosWithFields()
 {
     await AuthenticatedClient.WithTempVideo(async clipId =>
     {
         await AuthenticatedClient.WithTestAlbum(async albumId =>
         {
             await AuthenticatedClient.AddToAlbumAsync(UserId.Me, albumId, clipId);
             var videos =
                 await AuthenticatedClient.GetAlbumVideosAsync(albumId, 1, null, fields: new[] { "uri", "name" });
             videos.ShouldNotBeNull();
             videos.Data.Count.ShouldBeGreaterThan(0);
             var video = videos.Data[0];
             video.ShouldNotBeNull();
             video.Uri.ShouldNotBeNull();
             video.Name.ShouldNotBeNull();
             video.Pictures.ShouldBeNull();
         });
     });
 }