public void SetUp() { _apiSettings = new XmlApiSettings { Url = "url", UserName = "******", Password = "******" }; _responseString = @"<WFC> <Response Status='Success' Timeout='1800' PersonNumber='SUPERUSER' Action='Logon' PersonKey='-1' Username='******' Object='System'> </Response> <Response Status='Success' Action='RunQuery'> <HyperFindResult FullName='Gallo, Leo' PersonNumber='46'/> </Response> <Response Status='Success' Action='Logoff' Object='System'> </Response></WFC>"; _responseListString = @"<WFC> <Response Status='Success' Timeout='1800' PersonNumber='SUPERUSER' Action='Logon' PersonKey='-1' Username='******' Object='System'> </Response> <Response Status='Success' Action='RunQuery'> <HyperFindResult FullName='Gallo, Leo' PersonNumber='46'/> <HyperFindResult FullName='Super, Pat' PersonNumber='45'/> </Response> <Response Status='Success' Action='Logoff' Object='System'> </Response></WFC>"; }
public void SetUp() { _apiSettings = new XmlApiSettings { Url = "url", UserName = "******", Password = "******" }; }
private void SetUpXmlApiSettings() { if (!Program.Container.Kernel.HasComponent(typeof(XmlApiSettings))) { var xmlApiSetting = new XmlApiSettings { Url = tbApiServerUrl.Text, UserName = tbApiUserName.Text, Password = tbApiPassword.Text }; Program.Container.Register(Component.For <XmlApiSettings>().Instance(xmlApiSetting)); } else { var currentXmlApiSettings = Program.Container.Resolve <XmlApiSettings>(); currentXmlApiSettings.Url = tbApiServerUrl.Text; currentXmlApiSettings.UserName = tbApiUserName.Text; currentXmlApiSettings.Password = tbApiPassword.Text; } }
public TestLoginXmlApiService(XmlApiSettings apiSettings, IWebRequest webRequest) { _apiSettings = apiSettings; _webRequest = webRequest; }
public XmlApiWriteService(XmlApiSettings apiSettings, IWebRequest webRequest) : base(apiSettings, webRequest) { }