public void SetUp()
        {
            Guid page1Id = ServerOperations.Pages().CreatePage(PageName);

            ServerOperationsFeather.Pages().AddVideoGalleryWidgetToPage(page1Id);

            Guid singleItemPageId = ServerOperations.Pages().CreatePage(SingleItemPage);

            ServerOperationsFeather.Pages().AddVideoGalleryWidgetToPage(singleItemPageId);

            var parentId = ServerOperations.Videos().CreateLibrary(VideoLibraryTitle);
            var childId  = ServerOperations.Videos().CreateFolder(ChildLibraryTitle, parentId);

            ServerOperations.Videos().Upload(VideoLibraryTitle, VideoTitle + 1, VideoResource1);
            ServerOperations.Videos().Upload(VideoLibraryTitle, VideoTitle + 2, VideoResource2);
            ServerOperationsFeather.MediaOperations().UploadVideoInFolder(childId, VideoTitle + 3, VideoResource3);
            ServerOperationsFeather.MediaOperations().UploadVideoInFolder(childId, VideoTitle + 4, VideoResource4);
        }
Esempio n. 2
0
        public void SetUp()
        {
            Guid page1Id = ServerOperations.Pages().CreatePage(PageName);

            ServerOperationsFeather.Pages().AddDocumentsListWidgetToPage(page1Id);

            Guid singleItemPageId = ServerOperations.Pages().CreatePage(SingleItemPage);

            ServerOperationsFeather.Pages().AddDocumentsListWidgetToPage(singleItemPageId);

            var parentId = ServerOperations.Documents().CreateLibrary(DocumentLibraryTitle);
            var childId  = ServerOperations.Documents().CreateFolder(ChildLibraryTitle, parentId);

            ServerOperations.Documents().Upload(DocumentLibraryTitle, DocumentTitle + 1, ImageResource1);
            ServerOperations.Documents().Upload(DocumentLibraryTitle, DocumentTitle + 4, ImageResource4);
            ServerOperationsFeather.MediaOperations().UploadDocumentInFolder(childId, DocumentTitle + 3, ImageResource3);
            ServerOperationsFeather.MediaOperations().UploadDocumentInFolder(childId, DocumentTitle + 2, ImageResource2);
        }
        public void SetUp()
        {
            Guid page1Id = ServerOperations.Pages().CreatePage(PageName);

            ServerOperationsFeather.Pages().AddContentBlockWidgetToPage(page1Id);

            var parentId    = ServerOperations.Videos().CreateLibrary(VideoLibraryTitle);
            var childId     = ServerOperations.Videos().CreateFolder(ChildLibraryTitle, parentId);
            var nextChildId = ServerOperations.Videos().CreateFolder(NextChildLibraryTitle, childId);

            ServerOperations.Videos().Upload(VideoLibraryTitle, VideoTitle + 1, VideoResource);
            ServerOperationsFeather.MediaOperations().UploadVideoInFolder(childId, VideoTitle + 2, VideoResourceChild);
            ServerOperations.Users().CreateUserWithProfileAndRoles(this.AdninistratorEmail, "password", "Administrator", "User", new List <string> {
                "BackendUsers", "Administrators"
            });

            AuthenticationHelper.AuthenticateUser(this.AdninistratorEmail, "password", true);
            ServerOperationsFeather.MediaOperations().UploadVideoInFolder(nextChildId, VideoTitle + 3, VideoResourceNextChild);
        }
        public void SetUp()
        {
            AuthenticationHelper.AuthenticateUser(AdminUserName, AdminPass, true);
            Guid page1Id = ServerOperations.Pages().CreatePage(PageName);

            ServerOperationsFeather.Pages().AddContentBlockWidgetToPage(page1Id);

            var parentId    = ServerSideUpload.CreateDocumentLibrary(DocumentLibraryTitle);
            var childId     = ServerSideUpload.CreateFolder(ChildLibraryTitle, parentId);
            var nextChildId = ServerSideUpload.CreateFolder(NextChildLibraryTitle, childId);

            ServerSideUpload.UploadDocument(DocumentLibraryTitle, DocumentTitle + 1, DocumentResource);
            ServerOperationsFeather.MediaOperations().UploadDocumentInFolder(childId, DocumentTitle + 2, DocumentResourceChild);

            ServerOperations.Users().CreateUserWithProfileAndRoles("administrator", "password", "Administrator", "User", "*****@*****.**", new List <string> {
                "BackendUsers", "Administrators"
            });

            AuthenticationHelper.AuthenticateUser("administrator", "password", true);
            ServerOperationsFeather.MediaOperations().UploadDocumentInFolder(nextChildId, DocumentTitle + 3, DocumentResourceNextChild);
        }