本文整理汇总了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"));
}