Example #1
0
        public async Task ShouldCorrectlyGetPictureFromVideo()
        {
            var pictures = await AuthenticatedClient.GetPicturesAsync(VimeoSettings.PublicVideoId);

            pictures.Data.Count.ShouldBeGreaterThan(0);
            var picture     = pictures.Data[0];
            var parts       = picture.Uri.Split('/');
            var pictureId   = long.Parse(parts[parts.Length - 1]);
            var pictureById = await AuthenticatedClient.GetPictureAsync(VimeoSettings.PublicVideoId, pictureId);

            pictureById.ShouldNotBeNull();
        }
Example #2
0
        public async Task ShouldCorrectlyGetVideoThumbnails()
        {
            var pictures = await AuthenticatedClient.GetPicturesAsync(VimeoSettings.PublicVideoId);

            pictures.ShouldNotBeNull();
            pictures.Data.Count.ShouldBeGreaterThan(0);
            var uriParts  = pictures.Data[0].Uri.Split('/');
            var pictureId = long.Parse(uriParts[uriParts.Length - 1]);
            var picture   = await AuthenticatedClient.GetPictureAsync(VimeoSettings.PublicVideoId, pictureId);

            picture.ShouldNotBeNull();
        }