Пример #1
0
        public async Task ShouldCorrectlyAssignEmbedPresetToVideo()
        {
            if (VimeoSettings.EmbedPresetId == 0)
            {
                return;
            }

            await AuthenticatedClient.WithTempVideo(async clipId =>
            {
                await AuthenticatedClient.AssignEmbedPresetToVideoAsync(clipId, VimeoSettings.EmbedPresetId);
                var video = await AuthenticatedClient.GetVideoAsync(clipId, new[] { "embed_presets" });
                video.ShouldNotBeNull();
                video.EmbedPresets.ShouldNotBeNull();
                video.EmbedPresets.Id.ShouldBe(VimeoSettings.EmbedPresetId);
            });
        }