Ejemplo n.º 1
0
		public void SetUpTest()
		{
			_client = new LRClient("http://alpha.learningregistry.org");
		}
Ejemplo n.º 2
0
    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();
    }
Ejemplo n.º 3
0
		public void SetUpTest()
		{
			_client = new LRClient("http://10.100.30.60", "lrlocal", "password");
			_harvester = _client.Harvester;
		}