コード例 #1
0
        protected static void Establish_context()
        {
            client = new HttpClient();
            var partyrole = new OpenNexus.MDM.Contracts.PartyRole();

            content = HttpContentExtensions.CreateDataContract(partyrole);
        }
コード例 #2
0
 protected static void Establish_context()
 {
     entity = PartyRoleData.CreateBasicEntity();
     var notAMapping = new OpenNexus.MDM.Contracts.PartyRole();
     content = HttpContentExtensions.CreateDataContract(notAMapping);
     client = new HttpClient();
 }
コード例 #3
0
        protected static void Establish_context()
        {
            partyrole = PartyRoleData.CreateContractForEntityCreation();

            content = HttpContentExtensions.CreateDataContract(partyrole);
            client  = new HttpClient();
        }
コード例 #4
0
        protected static void Establish_context()
        {
            partyrole = PartyRoleData.CreateContractForEntityCreation();

            content = HttpContentExtensions.CreateDataContract(partyrole);
            client = new HttpClient();
        }
コード例 #5
0
        protected static void Establish_context()
        {
            entity = PartyRoleData.CreateBasicEntity();
            var notAMapping = new OpenNexus.MDM.Contracts.PartyRole();

            content = HttpContentExtensions.CreateDataContract(notAMapping);
            client  = new HttpClient();
        }
コード例 #6
0
        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));
        }
コード例 #7
0
 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>();
         }
     }
 }
コード例 #8
0
        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>();
        }
コード例 #9
0
 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>();
         }
     }
 }
コード例 #10
0
        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>();
        }