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() { 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(); }
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); }
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 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); }
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()); }
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().AddContentBlockWidgetToPage(pageId, string.Empty, PlaceHolderId); ServerSideUpload.CreateAlbum(ImageLibraryTitle); ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 1, ImageResource); ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 2, ImageResourceChild); }
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); }
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().AddContentBlockWidgetToPage(page1Id); var parentId = ServerSideUpload.CreateAlbum(ImageLibraryTitle); var childId = ServerSideUpload.CreateFolder(ChildLibraryTitle, parentId); var nextChildId = ServerSideUpload.CreateFolder(NextChildLibraryTitle, childId); ServerSideUpload.UploadImage(ImageLibraryTitle, ImageTitle + 1, ImageResource); ServerSideUpload.UploadImageInFolder(childId, ImageTitle + 2, ImageResourceChild); ServerOperations.Users().CreateUserWithProfileAndRoles("administrator", "password", "Administrator", "User", "*****@*****.**", new List <string> { "BackendUsers", "Administrators" }); AuthenticationHelper.AuthenticateUser("administrator", "password", true); ServerSideUpload.UploadImageInFolder(nextChildId, ImageTitle + 3, ImageResourceNextChild); }