protected static void Establish_context() { client = new HttpClient(); var partyrole = new OpenNexus.MDM.Contracts.PartyRole(); content = HttpContentExtensions.CreateDataContract(partyrole); }
protected static void Establish_context() { entity = PartyRoleData.CreateBasicEntity(); var notAMapping = new OpenNexus.MDM.Contracts.PartyRole(); content = HttpContentExtensions.CreateDataContract(notAMapping); client = new HttpClient(); }
protected static void Establish_context() { partyrole = PartyRoleData.CreateContractForEntityCreation(); content = HttpContentExtensions.CreateDataContract(partyrole); client = new HttpClient(); }
protected static void Establish_context() { client = new HttpClient(); entity = PartyRoleData.CreateBasicEntity(); var getResponse = client.Get(ServiceUrl["PartyRole"] + entity.Id); updatedContract = getResponse.Content.ReadAsDataContract<OpenNexus.MDM.Contracts.PartyRole>(); content = HttpContentExtensions.CreateDataContract(PartyRoleData.MakeChangeToContract(updatedContract)); }
protected static void Because_of() { using (var client = new HttpClient(ServiceUrl["PartyRole"] + partyrole.Id)) { using (HttpResponseMessage response = client.Get()) { returnedPartyRole = response.Content.ReadAsDataContract<OpenNexus.MDM.Contracts.PartyRole>(); } } }
protected static void Because_of() { asof = Script.baseDate.AddSeconds(1); client = new HttpClient(ServiceUrl["PartyRole"] + string.Format("{0}?as-of={1}", partyrole.Id.ToString(), asof.ToString(DateFormatString))); HttpResponseMessage response = client.Get(); returnedPartyRole = response.Content.ReadAsDataContract <OpenNexus.MDM.Contracts.PartyRole>(); }
protected static void Because_of() { using (var client = new HttpClient(ServiceUrl["PartyRole"] + partyrole.Id)) { using (HttpResponseMessage response = client.Get()) { returnedPartyRole = response.Content.ReadAsDataContract <OpenNexus.MDM.Contracts.PartyRole>(); } } }
protected static void Because_of() { asof = Script.baseDate.AddSeconds(1); client = new HttpClient(ServiceUrl["PartyRole"] + string.Format("{0}?as-of={1}", partyrole.Id.ToString(), asof.ToString(DateFormatString))); HttpResponseMessage response = client.Get(); returnedPartyRole = response.Content.ReadAsDataContract<OpenNexus.MDM.Contracts.PartyRole>(); }