protected ofplug.of.Connection Arrange_of_connection() { ofplug.of.Connection of_connection = new ofplug.of.Connection(string.Empty, string.Empty); of_connection.Replace_sender(_sender); return(of_connection); }
public void GetTest() { ofplug.of.Connection connection = new ofplug.of.Connection("http://of.devflowtwo.com/kirkenskorshaer/api/v2/", ""); ofplug.of.data.Agreement response = connection.Agreement.Get(1702); //Agreement_id_get_response response = Agreement.Get("http://127.0.0.1:5000/echo/", 1702); Console.Out.WriteLine(response.Amount); }
private ofplug.Logic.Aftale.Maintain Arrange_maintain() { ofplug.of.Connection of_connection = Arrange_of_connection(); ofplug.crm.Config config = new ofplug.crm.Config(_service, _tracingService, false) { Nrq_of_token = "", Nrq_of_url = "" }; ofplug.Logic.Aftale.Maintain maintain = new ofplug.Logic.Aftale.Maintain(_service, _tracingService, config, of_connection); return(maintain); }
public void Contact_can_change_name() { ofplug.of.Connection connection = new ofplug.of.Connection("http://of.devflowtwo.com/kirkenskorshaer/api/v2/", ""); ofplug.of.data.Contact of_contact = connection.Contact.Get(1703); string first_name_before = of_contact.First_name; string unmodified_first_name = of_contact.First_name; string modified_first_name = of_contact.First_name + "_test"; of_contact = To_crm_and_back(of_contact, crm_contact => crm_contact.firstname = modified_first_name); connection.Contact.Patch(of_contact.Of_id.Value, of_contact); of_contact = connection.Contact.Get(of_contact.Of_id.Value); string first_name_After = of_contact.First_name; of_contact = To_crm_and_back(of_contact, crm_contact => crm_contact.firstname = unmodified_first_name); connection.Contact.Patch(of_contact.Of_id.Value, of_contact); Assert.AreEqual(modified_first_name, first_name_After); }