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

            ServerOperationsFeather.Pages().AddDocumentsListWidgetToPage(page1Id);

            ServerSideUpload.CreateDocumentLibrary(DocumentLibraryTitle);

            List <Guid> listOfIds = new List <Guid>();
            var         guidDoc1  = ServerSideUpload.UploadDocument(DocumentLibraryTitle, DocumentTitle + 1, ImageResource1);

            listOfIds.Add(guidDoc1);
            var guidDoc2 = ServerSideUpload.UploadDocument(DocumentLibraryTitle, DocumentTitle + 2, ImageResource2);

            listOfIds.Add(guidDoc2);
            var guidDoc3 = ServerSideUpload.UploadDocument(DocumentLibraryTitle, DocumentTitle + 3, ImageResource3);

            listOfIds.Add(guidDoc3);
            var guidDoc4 = ServerSideUpload.UploadDocument(DocumentLibraryTitle, DocumentTitle + 4, ImageResource4);

            listOfIds.Add(guidDoc4);

            this.AssignTaxonomiesToImages(listOfIds);

            this.ChangeThePublicationDateOfADocument();
        }
 public void Setup()
 {
     ServerOperations.Documents().CreateDocumentLibrary(LibraryTitle);
     ServerSideUpload.UploadDocument(LibraryTitle, DocumentTitle + 1, DocumentResource1);
     ServerSideUpload.UploadDocument(LibraryTitle, DocumentTitle + 3, DocumentResource3);
     ServerSideUpload.UploadDocument(LibraryTitle, DocumentTitle + 2, DocumentResource2);
 }
 public void SetUp()
 {
     ServerOperations.Pages().CreatePage(PageName);
     ServerSideUpload.CreateVideoLibrary(LibraryTitle);
     ServerSideUpload.UploadVideo(LibraryTitle, VideoTitle1, VideoResource1);
     ServerSideUpload.UploadVideo(LibraryTitle, VideoTitle2, VideoResource2);
 }
Exemplo n.º 4
0
        public void SetUp()
        {
            Guid templateId = ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName);
            Guid pageId     = ServerOperations.Pages().CreatePage(PageName, templateId);
            Guid pageNodeId = ServerOperations.Pages().GetPageNodeId(pageId);

            ServerSideUpload.CreateAlbum(ImageLibraryTitle);
            Guid imageId = ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle, ImageResource1);

            ServerOperations.Taxonomies().CreateCategory(this.taxonTitleImages);
            Guid categoryId = TaxonomyManager.GetManager().GetTaxa <HierarchicalTaxon>().SingleOrDefault(t => t.Title == this.taxonTitleImages).Id;

            ServerOperations.Images().AssignTaxonToImage(imageId, "Category", categoryId);

            ServerOperations.Taxonomies().CreateCategory(this.taxonTitleNews + "0");

            for (int i = 1; i < 4; i++)
            {
                ServerOperations.Taxonomies().CreateCategory(this.taxonTitleNews + i, this.taxonTitleNews + (i - 1));
                ServerOperationsFeather.NewsOperations().CreatePublishedNewsItem(NewsTitle + i, NewsContent, AuthorName, SourceName, new List <string> {
                    this.taxonTitleNews + i
                }, null, null);
            }

            ServerOperationsFeather.Pages().AddNewsWidgetToPage(pageNodeId, Placeholder);
            ServerOperationsFeather.Pages().AddCategoriesWidgetToPage(pageNodeId, Placeholder);
            ServerOperationsFeather.Pages().AddImageGalleryWidgetToPage(pageNodeId, Placeholder);
        }
Exemplo n.º 5
0
        public void SetUp()
        {
            Guid page1Id = ServerOperations.Pages().CreatePage(PageName);

            ServerOperationsFeather.Pages().AddVideoGalleryWidgetToPage(page1Id);

            ServerSideUpload.CreateVideoLibrary(VideoLibraryTitle);

            List <Guid> listOfIds  = new List <Guid>();
            var         guidVideo1 = ServerSideUpload.UploadVideo(VideoLibraryTitle, VideoTitle + 1, VideoResource1);

            listOfIds.Add(guidVideo1);
            var guidVideo2 = ServerSideUpload.UploadVideo(VideoLibraryTitle, VideoTitle + 2, VideoResource2);

            listOfIds.Add(guidVideo2);
            var guidVideo3 = ServerSideUpload.UploadVideo(VideoLibraryTitle, VideoTitle + 3, VideoResource3);

            listOfIds.Add(guidVideo3);
            var guidVideo4 = ServerSideUpload.UploadVideo(VideoLibraryTitle, VideoTitle + 4, VideoResource4);

            listOfIds.Add(guidVideo4);

            this.AssignTaxonomiesToVideos(listOfIds);

            this.ChangeThePublicationDateOfAnVideo();
        }
Exemplo n.º 6
0
 public void Setup()
 {
     ServerSideUpload.CreateVideoLibrary(LibraryTitle);
     ServerSideUpload.UploadVideo(LibraryTitle, VideoTitle + 1, VideoResource1);
     ServerSideUpload.UploadVideo(LibraryTitle, VideoTitle + 3, VideoResource3);
     ServerSideUpload.UploadVideo(LibraryTitle, VideoTitle + 2, VideoResource2);
 }
        public void SetUp()
        {
            Guid page1Id = ServerOperations.Pages().CreatePage(PageName);

            ServerOperationsFeather.Pages().AddImageGalleryWidgetToPage(page1Id);

            ServerSideUpload.CreateAlbum(ImageLibraryTitle);

            List <Guid> listOfIds  = new List <Guid>();
            var         guidImage1 = ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 1, ImageResource1);

            listOfIds.Add(guidImage1);
            var guidImage2 = ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 2, ImageResource2);

            listOfIds.Add(guidImage2);
            var guidImage3 = ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 3, ImageResource3);

            listOfIds.Add(guidImage3);
            var guidImage4 = ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 4, ImageResource4);

            listOfIds.Add(guidImage4);

            this.AssignTaxonomiesToImages(listOfIds);

            this.ChangeThePublicationDateOfAnImage();
        }
Exemplo n.º 8
0
 public void Setup()
 {
     ServerSideUpload.CreateAlbum(LibraryTitle);
     ServerSideUpload.UploadImage(LibraryTitle, ImageTitle + 1, ImageResource1);
     ServerSideUpload.UploadImage(LibraryTitle, ImageTitle + 3, ImageResource3);
     ServerSideUpload.UploadImage(LibraryTitle, ImageTitle + 2, ImageResource2);
 }
        public void SetUp()
        {
            ServerOperations.Pages().CreatePage(PageName);
            ServerSideUpload.CreateAlbum(ImageLibraryTitle);
            ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 1, ImageResource);

            ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 2, ImageResourceChild);
        }
        public void SetUp()
        {
            Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName);

            Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId);

            ServerOperations.Documents().CreateDocumentLibrary(LibraryTitle);
            ServerSideUpload.UploadDocument(LibraryTitle, DocumentTitle1, DocumentResource1);
            ServerSideUpload.UploadDocument(LibraryTitle, DocumentTitle2, DocumentResource2);
        }
Exemplo n.º 11
0
        public void UploadDocument()
        {
            ServerOperations.Documents().CreateDocumentLibrary(LibraryTitle);
            Guid id = ServerSideUpload.UploadDocument(LibraryTitle, DocumentTitle, DocumentResource);

            var manager = LibrariesManager.GetManager();
            var master  = manager.GetDocument(id);
            var live    = manager.Lifecycle.GetLive(master);

            ServerArrangementContext.GetCurrent().Values.Add("documentId", live.Id.ToString());
        }
        public void UploadVideo()
        {
            ServerSideUpload.CreateVideoLibrary(LibraryTitle);
            Guid id = ServerSideUpload.UploadVideo(LibraryTitle, VideoTitle, VideoResource);

            var manager = LibrariesManager.GetManager();
            var master  = manager.GetVideo(id);
            var live    = manager.Lifecycle.GetLive(master);

            ServerArrangementContext.GetCurrent().Values.Add("videoId", live.Id.ToString());
        }
        public void SetUp()
        {
            Guid page1Id = ServerOperations.Pages().CreatePage(PageName);

            ServerOperationsFeather.Pages().AddContentBlockWidgetToPage(page1Id);

            ServerOperations.Images().CreateLibrary(ImageLibraryTitle);
            ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle1, ImageResource1);
            ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle2, ImageResource2);
            ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle3, ImageResource3);
        }
Exemplo n.º 14
0
        public void UploadImage()
        {
            ServerOperations.Images().CreateLibrary(ImageLibraryTitle);
            Guid id = ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle, ImageResource);

            var manager = LibrariesManager.GetManager();
            var master  = manager.GetImage(id);
            var live    = manager.Lifecycle.GetLive(master);

            ServerArrangementContext.GetCurrent().Values.Add("imageId", live.Id.ToString());
        }
Exemplo n.º 15
0
        public void SetUp()
        {
            Guid page1Id = ServerOperations.Pages().CreatePage(PageName);

            ServerOperationsFeather.Pages().AddContentBlockWidgetToPage(page1Id);

            var parentId = ServerSideUpload.CreateAlbum(ImageLibraryTitle);

            ServerSideUpload.CreateFolder(ChildLibraryTitle, parentId);
            ServerOperations.Taxonomies().CreateCategory(TaxonTitle + 0);
            ServerOperations.Taxonomies().CreateCategory(TaxonTitle + 1, TaxonTitle + 0);
        }
Exemplo n.º 16
0
        public void SetUp()
        {
            Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName);
            Guid pageId     = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId);

            pageId = ServerOperations.Pages().GetPageNodeId(pageId);

            ServerOperationsFeather.Pages().AddContentBlockWidgetToPage(pageId, string.Empty, PlaceHolderId);

            ServerSideUpload.CreateVideoLibrary(LibraryTitle);
            ServerSideUpload.UploadVideo(LibraryTitle, VideoTitle1, VideoResource1);
        }
Exemplo n.º 17
0
        public void SetUp()
        {
            Guid page1Id = ServerOperations.Pages().CreatePage(PageName);

            ServerOperationsFeather.Pages().AddVideoGalleryWidgetToPage(page1Id);

            ServerSideUpload.CreateVideoLibrary(VideoLibraryTitle);
            ServerSideUpload.CreateVideoLibrary(AnotherVideoLibraryTitle);

            ServerSideUpload.UploadVideo(VideoLibraryTitle, VideoTitle + 1, VideoResource1);
            ServerSideUpload.UploadVideo(AnotherVideoLibraryTitle, VideoTitle + 2, VideoResource2);
            ServerSideUpload.UploadVideo(AnotherVideoLibraryTitle, VideoTitle + 3, VideoResource3);
        }
        public void SetUp()
        {
            Guid page1Id = ServerOperations.Pages().CreatePage(PageName);

            ServerOperationsFeather.Pages().AddImageGalleryWidgetToPage(page1Id);

            ServerSideUpload.CreateAlbum(ImageLibraryTitle);
            ServerSideUpload.CreateAlbum(AnotherImageLibraryTitle);

            ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 1, ImageResource1);
            ServerSideUpload.UploadImage(AnotherImageLibraryTitle, ImageTitle + 2, ImageResource2);
            ServerSideUpload.UploadImage(AnotherImageLibraryTitle, ImageTitle + 3, ImageResource3);
        }
        public void SetUp()
        {
            Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName);
            Guid pageId     = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId);

            pageId = ServerOperations.Pages().GetPageNodeId(pageId);
            ServerOperationsFeather.Pages().AddDocumentsListWidgetToPage(pageId, "Contentplaceholder1");

            ServerSideUpload.CreateDocumentLibrary(LibraryTitle);
            ServerSideUpload.CreateDocumentLibrary(AnotherDocumentLibraryTitle);

            ServerSideUpload.UploadDocument(LibraryTitle, DocumentTitle + 1, ImageResource1);
            ServerSideUpload.UploadDocument(AnotherDocumentLibraryTitle, DocumentTitle + 2, ImageResource2);
            ServerSideUpload.UploadDocument(AnotherDocumentLibraryTitle, DocumentTitle + 3, ImageResource3);
        }
        public void SetUp()
        {
            AuthenticationHelper.AuthenticateUser(AdminUserName, AdminPass, true);
            Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName);
            Guid pageId     = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId);

            pageId = ServerOperations.Pages().GetPageNodeId(pageId);

            ServerOperationsFeather.Pages().AddContentBlockWidgetToPage(pageId, string.Empty, PlaceHolderId);

            ServerOperations.Documents().CreateDocumentLibrary(LibraryTitle);
            ServerSideUpload.UploadDocument(LibraryTitle, DocumentTitle1, DocumentResource1);

            ServerSideUpload.UploadDocument(LibraryTitle, DocumentTitle2, DocumentResource2);
        }
        public void SetUp()
        {
            Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(PageTemplateName);
            Guid pageId     = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId);

            pageId = ServerOperations.Pages().GetPageNodeId(pageId);

            ServerOperationsFeather.Pages().AddVideoGalleryWidgetToPage(pageId, PlaceHolderId);

            ServerSideUpload.CreateVideoLibrary(VideoLibraryTitle);
            ServerSideUpload.UploadVideo(VideoLibraryTitle, VideoTitle + 1, VideoResource1);

            ServerSideUpload.UploadVideo(VideoLibraryTitle, VideoTitle + 2, VideoResource2);

            ServerSideUpload.UploadVideo(VideoLibraryTitle, VideoTitle + 3, VideoResource3);
        }
        public void SetUp()
        {
            string templateName = ServerArrangementContext.GetCurrent().Values["templateName"];

            Guid templateId = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Templates().GetTemplateIdByTitle(templateName);
            Guid pageId     = Telerik.Sitefinity.TestUtilities.CommonOperations.ServerOperations.Pages().CreatePage(PageName, templateId);

            pageId = ServerOperations.Pages().GetPageNodeId(pageId);

            ServerOperationsFeather.Pages().AddImageGalleryWidgetToPage(pageId, PlaceHolderId);

            ServerSideUpload.CreateAlbum(ImageLibraryTitle);
            ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 1, ImageResource1);

            ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 2, ImageResource2);

            ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 3, ImageResource3);
        }
Exemplo n.º 23
0
        public void SetUp()
        {
            Guid page1Id = ServerOperations.Pages().CreatePage(PageName);

            ServerOperationsFeather.Pages().AddImageGalleryWidgetToPage(page1Id);

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

            ServerOperationsFeather.Pages().AddImageGalleryWidgetToPage(singleItemPageId);

            var parentId = ServerSideUpload.CreateAlbum(ImageLibraryTitle);
            var childId  = ServerSideUpload.CreateFolder(ChildLibraryTitle, parentId);

            ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 1, ImageResource1);
            ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 2, ImageResource2);
            ServerSideUpload.UploadImageInFolder(childId, ImageTitle + 3, ImageResource3);
            ServerSideUpload.UploadImageInFolder(childId, ImageTitle + 4, ImageResource4);
        }
        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 = ServerSideUpload.CreateVideoLibrary(VideoLibraryTitle);
            var childId  = ServerSideUpload.CreateFolder(ChildLibraryTitle, parentId);

            ServerSideUpload.UploadVideo(VideoLibraryTitle, VideoTitle + 1, VideoResource1);
            ServerSideUpload.UploadVideo(VideoLibraryTitle, VideoTitle + 2, VideoResource2);
            ServerOperationsFeather.MediaOperations().UploadVideoInFolder(childId, VideoTitle + 3, VideoResource3);
            ServerOperationsFeather.MediaOperations().UploadVideoInFolder(childId, VideoTitle + 4, VideoResource4);
        }
Exemplo n.º 25
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 = ServerSideUpload.CreateDocumentLibrary(DocumentLibraryTitle);
            var childId  = ServerSideUpload.CreateFolder(ChildLibraryTitle, parentId);

            ServerSideUpload.UploadDocument(DocumentLibraryTitle, DocumentTitle + 1, ImageResource1);
            ServerSideUpload.UploadDocument(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    = ServerSideUpload.CreateVideoLibrary(VideoLibraryTitle);
            var childId     = ServerSideUpload.CreateFolder(ChildLibraryTitle, parentId);
            var nextChildId = ServerSideUpload.CreateFolder(NextChildLibraryTitle, childId);

            ServerSideUpload.UploadVideo(VideoLibraryTitle, VideoTitle + 1, VideoResource);
            ServerOperationsFeather.MediaOperations().UploadVideoInFolder(childId, VideoTitle + 2, VideoResourceChild);
            ServerOperations.Users().CreateUserWithProfileAndRoles("administrator", "password", "Administrator", "User", "*****@*****.**", new List <string> {
                "BackendUsers", "Administrators"
            });

            AuthenticationHelper.AuthenticateUser("administrator", "password", true);
            ServerOperationsFeather.MediaOperations().UploadVideoInFolder(nextChildId, VideoTitle + 3, VideoResourceNextChild);
        }