本文整理匯總了C#中Tests.DnaTestURLRequest.SignUserIntoSSOViaProfileAPI方法的典型用法代碼示例。如果您正苦於以下問題:C# DnaTestURLRequest.SignUserIntoSSOViaProfileAPI方法的具體用法?C# DnaTestURLRequest.SignUserIntoSSOViaProfileAPI怎麽用?C# DnaTestURLRequest.SignUserIntoSSOViaProfileAPI使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tests.DnaTestURLRequest
的用法示例。
在下文中一共展示了DnaTestURLRequest.SignUserIntoSSOViaProfileAPI方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Messageboardschedule_SetInRipley_CheckVisibleInCSharp
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"));
}