public void SetUpTest() { _client = new LRClient("http://alpha.learningregistry.org"); }
protected void PublishDocuments(object sender, EventArgs e) { bool validated = ValidateRequiredFields(); if(validated) { lr_Envelope envelope = buildEnvelopeFromMapping(); LRClient client = new LRClient(this.ServerInfoWidget.NodeUrl); if (!String.IsNullOrEmpty(this.ServerInfoWidget.HttpUsername)) { client.Username = ServerInfoWidget.HttpUsername; client.Password = ServerInfoWidget.HttpPassword; } PublishResponse res = client.Publish(envelope); buildAndShowNotification(res); } else ShowMissingFields(); }
public void SetUpTest() { _client = new LRClient("http://10.100.30.60", "lrlocal", "password"); _harvester = _client.Harvester; }