Пример #1
0
        public void Messageboardschedule_SetInRipley_CheckVisibleInCSharp()
        {

            // Fill the times dictionary with the current open close times for h2g2
            // Get the current open and close times for the h2g2 site
            DnaTestURLRequest request = new DnaTestURLRequest("h2g2");
            request.RequestPage("acs?skin=purexml");

            // Check to see if we've got openclose times for this site
            Assert.IsNull(request.GetLastResponseAsXML().SelectSingleNode("/H2G2/SITE/OPENCLOSETIMES/OPENCLOSETIME"));
            // no times! Set daily repeating times for the site
            request.UseEditorAuthentication = true;
            request.SignUserIntoSSOViaProfileAPI(DnaTestURLRequest.usertype.EDITOR);
            request.RequestPage("messageboardschedule?action=update&updatetype=sameeveryday&recurrenteventopenhours=0&recurrenteventopenminutes=15&recurrenteventclosehours=23&recurrenteventcloseminutes=45&skin=purexml");
            request.UseEditorAuthentication = false;

            // Now re-request the original page
           request.RequestPage("acs?skin=purexml");
           Assert.IsNotNull(request.GetLastResponseAsXML().SelectSingleNode("/H2G2/SITE/OPENCLOSETIMES/OPENCLOSETIME"));
        
        }