Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new Integrity instance to query upon. Entry point to the API
 /// </summary>
 /// <param name="user">Username</param>
 /// <param name="password">Password</param>
 /// <param name="service_url">URL For Integrity instance, eg "http://integrity.myhost.com"</param>
 /// 
 public Integrity(string user, string password, string service_url)
 {
     _integrity_service = new IntegrityHttpService(service_url, user, password);
     _configuration = new Configuration();
     _configuration.BuildFromXml(_integrity_service.GetConfiguration());
     _integrity_interface = new IntegrityInterface(ref _integrity_service);
 }
 public void TestSetup()
 {
     _instance = new IntegrityHttpService("url", "user", "password");
     _mock_service = new MockXMLHTTPService();
     XMLHTTPService _a = (XMLHTTPService)_mock_service;
     _instance.SetService(ref _a);
 }
 public IntegrityInterface(ref IntegrityHttpService service)
 {
     _service = service;
 }