Exemplo n.º 1
0
        public void OnBeforeTestsStarts()
        {
            var  templateId = ServerOperations.Templates().CreateHybridMVCPageTemplate(TemplateName);
            Guid pageId     = ServerOperations.Pages().CreatePage(PageTitle, templateId);
            var  pageNodeId = ServerOperations.Pages().GetPageNodeId(pageId);

            ServerOperationsFeather.Pages().AddCalendarWidgetToPage(pageNodeId, PlaceHolderId);

            ServerOperations.Events().CreateEvent(CurrentEventTitle, string.Empty, false, this.currentEventStartTime, this.currentEventEndTime);
            var currentEventItem = EventsManager.GetManager().GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live &&
                                                                                        ni.Title == CurrentEventTitle).FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("currentEventId", currentEventItem.Id.ToString());

            ServerOperations.Events().CreateEvent(BasePastInOneDayEventTitle, string.Empty, false, this.basePastInOneDayEventStartTime, this.basePastInOneDayEventEndTime);
            var pastEventItem = EventsManager.GetManager().GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live &&
                                                                                     ni.Title == BasePastInOneDayEventTitle).FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("pastEventId", pastEventItem.Id.ToString());

            ServerOperations.Events().CreateEvent(BaseUpcomingInOneDayEventTitle, string.Empty, false, this.baseUpcomingInOneDayEventStartTime, this.baseUpcomingInOneDayEventEndTime);
            var upcomingEventItem = EventsManager.GetManager().GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live &&
                                                                                         ni.Title == BaseUpcomingInOneDayEventTitle).FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("upcomingEventId", upcomingEventItem.Id.ToString());

            ServerArrangementContext.GetCurrent().Values.Add("timezoneId", TimeZoneInfo.Utc.ToString());
        }
Exemplo n.º 2
0
        public void OnBeforeTestsStarts()
        {
            var  templateId  = ServerOperations.Templates().GetTemplateIdByTitle(TemplateTitle);
            Guid page1Id     = ServerOperations.Pages().CreatePage(PageTitle, templateId);
            var  page1NodeId = ServerOperations.Pages().GetPageNodeId(page1Id);

            ServerOperationsFeather.Pages().AddCalendarWidgetToPage(page1NodeId, PlaceHolderId);

            ServerOperations.Events().CreateCalendar(this.calendar1Guid, Calendar1Title);
            ServerOperations.Events().CreateEvent(Event1Title, string.Empty, IsAllDay, this.eventStart, this.eventEnd, this.calendar1Guid);
            var event1Item = EventsManager.GetManager()
                             .GetEvents()
                             .Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live && ni.Title == Event1Title)
                             .FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("event1Id", event1Item.Id.ToString());

            ServerOperations.Events().CreateCalendar(this.calendar2Guid, Calendar2Title);
            ServerOperations.Events().CreateEvent(Event2Title, string.Empty, IsAllDay, this.eventStart, this.eventEnd, this.calendar2Guid);
            var event2Item = EventsManager.GetManager()
                             .GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live && ni.Title == Event2Title)
                             .FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("event2Id", event2Item.Id.ToString());
        }
Exemplo n.º 3
0
        public void GetSiteMapRootNodeId()
        {
            // We need the siteMapRootNodeId in order to form the sfref later in the UI test.
            Guid siteMapRootNodeId = SystemManager.CurrentContext.CurrentSite.SiteMapRootNodeId;

            ServerArrangementContext.GetCurrent().Values.Add("siteMapRootNodeId", siteMapRootNodeId.ToString());
        }
        public void SetUp()
        {
            string templateName = ServerArrangementContext.GetCurrent().Values["templateName"];

            Guid templateId   = ServerOperations.Templates().GetTemplateIdByTitle(templateName);
            Guid parentPageId = ServerOperations.Pages().CreatePage(PageName, templateId);
            Guid pageNodeId   = ServerOperations.Pages().GetPageNodeId(parentPageId);

            FeatherServerOperations.Pages().AddMvcWidgetToPage(pageNodeId, typeof(NavigationController).FullName, WidgetCaption, PlaceHolderId);

            Guid childPage1Id = Guid.NewGuid();

            ServerOperations.Pages().CreatePage(ChildPage1, childPage1Id, pageNodeId);

            ServerOperations.Pages().CreateInternalRedirectPage(Page2Redirect, pageNodeId);

            ServerOperations.Pages().CreateExternalRedirectPage(Page1Redirect, ExternalUrl);

            Guid unpublisId = ServerOperations.Pages().CreatePage(UnpublishPage);

            ServerOperations.Multilingual().Pages().UnpublishPage(unpublisId);

            ServerOperations.Pages().CreateDraftPage(PageDraft);

            Guid pageGroup2Id = Guid.NewGuid();

            ServerOperations.Pages().CreatePageGroup(pageGroup2Id, Guid.Empty, Page2Group);

            Guid pageGroupId = Guid.NewGuid();

            ServerOperations.Pages().CreatePageGroup(pageGroupId, Guid.Empty, PageGroup);
            Guid childPage2Id = Guid.NewGuid();

            ServerOperations.Pages().CreatePage(ChildPage2, childPage2Id, pageGroupId);
        }
        public void OnBeforeTestsStarts()
        {
            var mvcProxy = new MvcControllerProxy();

            mvcProxy.ControllerName = typeof(EventSchedulerController).FullName;

            var templateId = ServerOperations.Templates().CreateHybridMVCPageTemplate(CaptionCalendar);

            ServerOperationsFeather.TemplateOperations().AddControlToTemplate(templateId, mvcProxy, PlaceHolderId, CaptionCalendar);

            ServerOperations.Events().CreateEvent(Event1Title, string.Empty, false, this.eventStart, this.eventEnd);
            var event1Item = EventsManager.GetManager()
                             .GetEvents()
                             .Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live && ni.Title == Event1Title)
                             .FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("event1Id", event1Item.Id.ToString());

            ServerOperations.Events().CreateEvent(Event2Title, string.Empty, false, this.eventStart, this.eventEnd);
            var event2Item = EventsManager.GetManager()
                             .GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live && ni.Title == Event2Title)
                             .FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("event2Id", event2Item.Id.ToString());
        }
Exemplo n.º 6
0
        public void GetChildPageId()
        {
            // We need the child page Id in order to form the sfref later in the UI test.
            Guid childPageId = ServerOperations.Pages().GetPageId(ChildPageName);

            ServerArrangementContext.GetCurrent().Values.Add("childPageId", childPageId.ToString());
        }
        public void SetUp()
        {
            string templateName = ServerArrangementContext.GetCurrent().Values["templateName"];

            Guid templateId   = ServerOperations.Templates().GetTemplateIdByTitle(templateName);
            Guid parentPageId = ServerOperations.Pages().CreatePage(PageName, templateId);
        }
        public void GetTemplateId()
        {
            var templateId = ServerOperationsFeather.TemplateOperations().GetTemplateIdByTitle(TemplateTitle);

            ServerOperations.Pages().CreatePage(PageName, templateId);

            ServerArrangementContext.GetCurrent().Values.Add("templateId", templateId.ToString());
        }
Exemplo n.º 9
0
        public void SetUp()
        {
            string templateName = ServerArrangementContext.GetCurrent().Values["templateName"];

            Guid templateId = ServerOperations.Templates().GetTemplateIdByTitle(templateName);

            ServerOperations.Pages().CreatePage(PageName, templateId);
            ServerOperations.News().CreatePublishedNewsItem(NewsTitle, NewsContent, null);
        }
Exemplo n.º 10
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());
        }
        public void SetUp()
        {
            string templateName = ServerArrangementContext.GetCurrent().Values["templateName"];

            Guid templateId   = ServerOperations.Templates().GetTemplateIdByTitle(templateName);
            Guid parentPageId = ServerOperations.Pages().CreatePage(PageName, templateId);
            Guid pageNodeId   = ServerOperations.Pages().GetPageNodeId(parentPageId);

            FeatherServerOperations.Pages().AddMvcWidgetToPage(pageNodeId, typeof(NavigationController).FullName, WidgetCaption, PlaceHolderId);
            ServerOperations.Pages().CreatePage(SiblingPageName);
        }
Exemplo n.º 12
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()
        {
            ServerOperations.Videos().CreateLibrary(LibraryTitle);
            Guid id = ServerOperations.Videos().Upload(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());
        }
Exemplo n.º 14
0
        public void SetUp()
        {
            string templateName = ServerArrangementContext.GetCurrent().Values["templateName"];

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

            ServerOperations.News().CreatePublishedNewsItem(NewsTitle1, NewsContent1, null);
            ServerOperations.News().CreatePublishedNewsItem(NewsTitle2, NewsContent2, null);
            pageId = ServerOperations.Pages().GetPageNodeId(pageId);
            ServerOperationsFeather.Pages().AddNewsWidgetToPage(pageId, PlaceHolderId);
        }
Exemplo n.º 15
0
        public void SetUp()
        {
            // Gets the template name from the arrangement context
            string templateName = ServerArrangementContext.GetCurrent().Values["templateName"];

            // Create a page with the corresponding template from the test - Bootstrap, Foundation or Semantic
            Guid templateId    = ServerOperations.Templates().GetTemplateIdByTitle(templateName);
            Guid navPageId     = ServerOperations.Pages().CreatePage(NavigationPage, templateId);
            Guid navPageNodeId = ServerOperations.Pages().GetPageNodeId(navPageId);

            // Adds navigation widget to the page
            FeatherServerOperations.Pages().AddMvcWidgetToPage(navPageNodeId, typeof(NavigationController).FullName, WidgetCaption, PlaceHolderId);
        }
        public void OnBeforeTestsStarts()
        {
            ServerOperations.Events().CreateEvent(Event1Title, string.Empty, false, this.eventStart, this.eventEnd);
            var event1Item = EventsManager.GetManager()
                             .GetEvents()
                             .Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live && ni.Title == Event1Title)
                             .FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("event1Id", event1Item.Id.ToString());

            ServerOperations.Events().CreateEvent(Event2Title, string.Empty, false, this.eventStart, this.eventEnd);
            var event2Item = EventsManager.GetManager()
                             .GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live && ni.Title == Event2Title)
                             .FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("event2Id", event2Item.Id.ToString());
        }
Exemplo n.º 17
0
        public void OnBeforeTestsStarts()
        {
            var  templateId = ServerOperations.Templates().GetTemplateIdByTitle(TemplateTitle);
            Guid pageId     = ServerOperations.Pages().CreatePage(PageTitle, templateId);
            var  pageNodeId = ServerOperations.Pages().GetPageNodeId(pageId);

            ServerOperationsFeather.Pages().AddCalendarWidgetToPage(pageNodeId, PlaceHolderId);

            var event1End = this.event1Start.AddMonths(3).AddDays(1);

            ServerOperations.Events().CreateAllDayEvent(Event1Title, string.Empty, this.event1Start, event1End);
            var event1Item = EventsManager.GetManager().GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live &&
                                                                                  ni.Title == Event1Title).FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("event1Id", event1Item.Id.ToString());
            ServerArrangementContext.GetCurrent().Values.Add("timezoneId", TimeZoneInfo.Utc.ToString());
        }
        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.º 19
0
        public void OnBeforeTestsStarts()
        {
            var  templateId = ServerOperations.Templates().GetTemplateIdByTitle(TemplateTitle);
            Guid pageId     = ServerOperations.Pages().CreatePage(PageTitle, templateId);
            var  pageNodeId = ServerOperations.Pages().GetPageNodeId(pageId);

            ServerOperationsFeather.Pages().AddCalendarWidgetToPage(pageNodeId, PlaceHolderId);

            var difference       = this.event1EndTime - this.event1StartTime;
            var occurancesCount1 = difference.TotalDays;
            int occurancesCount  = (int)occurancesCount1;

            ServerOperations.Events().CreateDailyRecurrentEvent(Event1Title, string.Empty, this.event1StartTime, this.event1EndTime, 60, occurancesCount, 1, TimeZoneInfo.Local.Id);
            var event1Item = EventsManager.GetManager().GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live &&
                                                                                  ni.Title == Event1Title).FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("event1Id", event1Item.Id.ToString());

            ServerArrangementContext.GetCurrent().Values.Add("timezoneId", TimeZoneInfo.Utc.ToString());
        }
Exemplo n.º 20
0
        public void OnBeforeTestsStarts()
        {
            var  templateId = ServerOperations.Templates().GetTemplateIdByTitle(TemplateTitle);
            Guid pageId     = ServerOperations.Pages().CreatePage(PageTitle, templateId);
            var  pageNodeId = ServerOperations.Pages().GetPageNodeId(pageId);

            ServerOperationsFeather.Pages().AddCalendarWidgetToPage(pageNodeId, PlaceHolderId);

            var еventStartTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0, DateTimeKind.Utc);
            var еventEndTime   = DateTime.Now.AddYears(5);

            ServerOperations.Events().CreаteAllDayRecurrentEvent(Event1Title, string.Empty, еventStartTime, еventEndTime, 1440, this.occurenceCount, 1, true);
            var event1Item = EventsManager.GetManager().GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live &&
                                                                                  ni.Title == Event1Title).FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("event1Id", event1Item.Id.ToString());
            var еventExpectedStartTime = this.FormatTime(еventStartTime);

            ServerArrangementContext.GetCurrent().Values.Add("еventStartTime", еventExpectedStartTime);
        }
        public void OnBeforeTestsStarts()
        {
            var templateId = ServerOperations.Templates().CreateHybridMVCPageTemplate(CaptionCalendar);

            ServerOperations.Events().CreateCalendar(this.calendar1Guid, Calendar1Title);
            ServerOperations.Events().CreateEvent(Event1Title, string.Empty, IsAllDay, this.eventStart, this.eventEnd, this.calendar1Guid);
            var event1Item = EventsManager.GetManager()
                             .GetEvents()
                             .Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live && ni.Title == Event1Title)
                             .FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("event1Id", event1Item.Id.ToString());

            ServerOperations.Events().CreateCalendar(this.calendar2Guid, Calendar2Title);
            ServerOperations.Events().CreateEvent(Event2Title, string.Empty, IsAllDay, this.eventStart, this.eventEnd, this.calendar2Guid);
            var event2Item = EventsManager.GetManager()
                             .GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live && ni.Title == Event2Title)
                             .FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("event2Id", event2Item.Id.ToString());
        }
Exemplo n.º 22
0
        public void SetUp()
        {
            // Gets the template name from the arrangement context
            string templateName = ServerArrangementContext.GetCurrent().Values["templateName"];

            // Create a page with the corresponding template from the test - Bootstrap, Foundation or Semantic
            Guid templateId   = ServerOperations.Templates().GetTemplateIdByTitle(templateName);
            Guid parentPageId = ServerOperations.Pages().CreatePage(Page1, templateId);
            Guid pageNodeId1  = ServerOperations.Pages().GetPageNodeId(parentPageId);

            // Adds navigation widget to the page
            FeatherServerOperations.Pages().AddMvcWidgetToPage(pageNodeId1, typeof(NavigationController).FullName, WidgetCaption, PlaceHolderId);

            // Create another page on root level
            Guid pageNodeId2 = ServerOperations.Pages().CreatePage(Page2);

            // Create child page for Page2
            Guid childPageId = Guid.NewGuid();

            ServerOperations.Pages().CreatePage(ChildPage, childPageId, pageNodeId2);
        }
Exemplo n.º 23
0
        public void OnBeforeTestsStarts()
        {
            var  templateId  = ServerOperations.Templates().GetTemplateIdByTitle(TemplateTitle);
            Guid page1Id     = ServerOperations.Pages().CreatePage(PageTitle, templateId);
            var  page1NodeId = ServerOperations.Pages().GetPageNodeId(page1Id);

            ServerOperationsFeather.Pages().AddCalendarWidgetToPage(page1NodeId, PlaceHolderId);

            var basicCurrentEventStartTime = DateTime.Now;
            var currentEventStartTime      = new DateTime(basicCurrentEventStartTime.Year, basicCurrentEventStartTime.Month, basicCurrentEventStartTime.Day, basicCurrentEventStartTime.Hour, basicCurrentEventStartTime.Minute, basicCurrentEventStartTime.Second);
            var basicCurrentEventEndTime   = DateTime.Now.AddHours(1);
            var currentEventEndTime        = new DateTime(basicCurrentEventEndTime.Year, basicCurrentEventEndTime.Month, basicCurrentEventEndTime.Day, basicCurrentEventEndTime.Hour, basicCurrentEventEndTime.Minute, basicCurrentEventEndTime.Second);

            ServerOperations.Events().CreateEvent(EventTitle, string.Empty, false, currentEventStartTime, currentEventEndTime);
            var currentEventItem = EventsManager.GetManager()
                                   .GetEvents()
                                   .Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live && ni.Title == EventTitle)
                                   .FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("currentEventId", currentEventItem.Id.ToString());
        }
        public void SetUp()
        {
            string templateName = ServerArrangementContext.GetCurrent().Values["templateName"];

            AuthenticationHelper.AuthenticateUser(AdminUser, AdminPassword);

            List <string> roles = new List <string>()
            {
                Editors, BackendUsers
            };

            Guid templateId = ServerOperations.Templates().GetTemplateIdByTitle(templateName);
            Guid pageId     = ServerOperations.Pages().CreatePage(HomePage, templateId);

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

            ServerOperations.Users().CreateUserWithProfileAndRoles(User, Password, User, User, Email, roles);
            ServerOperations.Pages().CreatePage(TestPage);
            ServerOperationsFeather.Pages().DenyPermissionsForRole(Editors, RoleProvider, TestPage);

            FeatherServerOperations.Pages().AddMvcWidgetToPage(pageId, typeof(NavigationController).FullName, WidgetCaption, PlaceHolderId);
        }
Exemplo n.º 25
0
        public void GetCurrentProviderUrlName()
        {
            string urlName = ServerOperations.Media().GetCurrentProviderUrlName;

            ServerArrangementContext.GetCurrent().Values.Add("CurrentProviderUrlName", urlName);
        }
Exemplo n.º 26
0
        public void IsMultisiteMode()
        {
            var isMultisiteMode = ServerOperations.MultiSite().CheckIsMultisiteMode();

            ServerArrangementContext.GetCurrent().Values.Add("isMultisiteMode", isMultisiteMode.ToString());
        }
Exemplo n.º 27
0
        public void IsMultilingualMode()
        {
            var isMultilingualMode = ServerOperations.Multilingual().IsCurrentSiteInMultilingual;

            ServerArrangementContext.GetCurrent().Values.Add("isMultilingualMode", isMultilingualMode.ToString());
        }
Exemplo n.º 28
0
        public void GetDefaultArrangementCulture()
        {
            var culture = ArrangementConfig.GetArrangementCulture();

            ServerArrangementContext.GetCurrent().Values.Add("defaultArrangementCulture", culture);
        }
Exemplo n.º 29
0
        public void GetDefaultArrangementSite()
        {
            var site = ArrangementConfig.GetArrangementSite();

            ServerArrangementContext.GetCurrent().Values.Add("defaultArrangementSite", site);
        }
Exemplo n.º 30
0
        public void OnBeforeTestsStarts()
        {
            var  templateId = ServerOperations.Templates().GetTemplateIdByTitle(TemplateTitle);
            Guid pageId     = ServerOperations.Pages().CreatePage(PageTitle, templateId);
            var  pageNodeId = ServerOperations.Pages().GetPageNodeId(pageId);

            ServerOperationsFeather.Pages().AddCalendarWidgetToPage(pageNodeId, PlaceHolderId);

            var basicCurrentEventStartTime = DateTime.Now;
            var currentEventStartTime      = new DateTime(basicCurrentEventStartTime.Year, basicCurrentEventStartTime.Month, basicCurrentEventStartTime.Day, basicCurrentEventStartTime.Hour, basicCurrentEventStartTime.Minute, basicCurrentEventStartTime.Second);
            var basicCurrentEventEndTime   = DateTime.Now.AddHours(1);
            var currentEventEndTime        = new DateTime(basicCurrentEventEndTime.Year, basicCurrentEventEndTime.Month, basicCurrentEventEndTime.Day, basicCurrentEventEndTime.Hour, basicCurrentEventEndTime.Minute, basicCurrentEventEndTime.Second);

            ServerOperations.Events().CreateEvent(CurrentEventTitle, string.Empty, false, currentEventStartTime, currentEventEndTime);
            var currentEventExpectedStartTime = this.FormatTime(currentEventStartTime);
            var currentEventExpectedEndTime   = this.FormatTime(currentEventEndTime);

            ServerArrangementContext.GetCurrent().Values.Add("currentEventStartTime", currentEventExpectedStartTime);
            ServerArrangementContext.GetCurrent().Values.Add("currentEventEndTime", currentEventExpectedEndTime);

            var currentEventItem = EventsManager.GetManager().GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live &&
                                                                                        ni.Title == CurrentEventTitle).FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("currentEventId", currentEventItem.Id.ToString());

            var basicBasePastInOneDayEventStartTime = DateTime.Now.AddDays(-1);
            var basePastInOneDayEventStartTime      = new DateTime(basicBasePastInOneDayEventStartTime.Year, basicBasePastInOneDayEventStartTime.Month, basicBasePastInOneDayEventStartTime.Day, basicBasePastInOneDayEventStartTime.Hour, basicBasePastInOneDayEventStartTime.Minute, basicBasePastInOneDayEventStartTime.Second);
            var basicBasePastInOneDayEventEndTime   = DateTime.Now.AddDays(-1);
            var basePastInOneDayEventEndTime        = new DateTime(basicBasePastInOneDayEventEndTime.Year, basicBasePastInOneDayEventEndTime.Month, basicBasePastInOneDayEventEndTime.Day, basicBasePastInOneDayEventEndTime.Hour, basicBasePastInOneDayEventEndTime.Minute, basicBasePastInOneDayEventEndTime.Second);

            ServerOperations.Events().CreateEvent(BasePastInOneDayEventTitle, string.Empty, false, basePastInOneDayEventStartTime, basePastInOneDayEventEndTime);
            var basePastInOneDayEventExpectedStartTime = this.FormatTime(basePastInOneDayEventStartTime);
            var basePastInOneDayEventExpectedEndTime   = this.FormatTime(basePastInOneDayEventEndTime);

            ServerArrangementContext.GetCurrent().Values.Add("basePastInOneDayEventStartTime", basePastInOneDayEventExpectedStartTime);
            ServerArrangementContext.GetCurrent().Values.Add("basePastInOneDayEventEndTime", basePastInOneDayEventExpectedEndTime);

            var pastEventItem = EventsManager.GetManager().GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live &&
                                                                                     ni.Title == BasePastInOneDayEventTitle).FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("pastEventId", pastEventItem.Id.ToString());

            var basicBaseUpcomingInOneDayEventStartTime = DateTime.Now.AddDays(1);
            var baseUpcomingInOneDayEventStartTime      = new DateTime(basicBaseUpcomingInOneDayEventStartTime.Year, basicBaseUpcomingInOneDayEventStartTime.Month, basicBaseUpcomingInOneDayEventStartTime.Day, basicBaseUpcomingInOneDayEventStartTime.Hour, basicBaseUpcomingInOneDayEventStartTime.Minute, basicBaseUpcomingInOneDayEventStartTime.Second);
            var basicBaseUpcomingInOneDayEventEndTime   = DateTime.Now.AddDays(1);
            var baseUpcomingInOneDayEventEndTime        = new DateTime(basicBaseUpcomingInOneDayEventEndTime.Year, basicBaseUpcomingInOneDayEventEndTime.Month, basicBaseUpcomingInOneDayEventEndTime.Day, basicBaseUpcomingInOneDayEventEndTime.Hour, basicBaseUpcomingInOneDayEventEndTime.Minute, basicBaseUpcomingInOneDayEventEndTime.Second);

            ServerOperations.Events().CreateEvent(BaseUpcomingInOneDayEventTitle, string.Empty, false, baseUpcomingInOneDayEventStartTime, baseUpcomingInOneDayEventEndTime);
            var baseUpcomingInOneDayEventExpectedStartTime = this.FormatTime(baseUpcomingInOneDayEventStartTime);
            var baseUpcomingInOneDaytExpectedEndTime       = this.FormatTime(baseUpcomingInOneDayEventEndTime);

            ServerArrangementContext.GetCurrent().Values.Add("baseUpcomingInOneDayEventStartTime", baseUpcomingInOneDayEventExpectedStartTime);
            ServerArrangementContext.GetCurrent().Values.Add("baseUpcomingInOneDayEventEndTime", baseUpcomingInOneDaytExpectedEndTime);

            var upcomingEventItem = EventsManager.GetManager().GetEvents().Where <Event>(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live &&
                                                                                         ni.Title == BaseUpcomingInOneDayEventTitle).FirstOrDefault();

            ServerArrangementContext.GetCurrent().Values.Add("upcomingEventId", upcomingEventItem.Id.ToString());

            ServerArrangementContext.GetCurrent().Values.Add("timezoneId", TimeZoneInfo.Utc.ToString());
        }