Esempio n. 1
0
        public void DeserializeMessageContractWrappedSampleNoCustomNamesWithOriginalContract()
        {
            CallParameterInfo[] parameters;
            parameters = RunDeserializer("Contracts.dll", "MessageContract.svclog", true, "http://contoso.com/service/test/IArithmetic/WrappednoCustomNamesAdd");

            Assert.AreEqual <int>(1, parameters.Length);
            this.ValidateNonNullInputParameter <Contracts.AddRequestWrappedMessageNoCustomNames>(parameters[0], "request");
            Contracts.AddRequestWrappedMessageNoCustomNames msg = (Contracts.AddRequestWrappedMessageNoCustomNames)parameters[0].Value;
            Assert.AreEqual <string>("hello", msg.header.Header);
            Assert.AreEqual <int>(11, msg.A);
            Assert.AreEqual <int>(6, msg.B);
        }
 private void WrappednoCustomNamesAdd()
 {
     Contracts.AddRequestWrappedMessageNoCustomNames request = new Contracts.AddRequestWrappedMessageNoCustomNames();
     request.header        = new Contracts.TestHeader();
     request.header.Header = "hello";
     request.A             = 11;
     request.B             = 6;
     this.CustomiseWrappednoCustomNamesAdd(request);
     _testContext.BeginTimer("GeneratedSampleTestWithProxyFromServerTrace_WrappednoCustomNamesAdd");
     try
     {
         arithmeticClient.WrappednoCustomNamesAdd(request);
     }
     finally
     {
         _testContext.EndTimer("GeneratedSampleTestWithProxyFromServerTrace_WrappednoCustomNamesAdd");
     }
 }
Esempio n. 3
0
 private void CustomiseWrappednoCustomNamesAdd(Contracts.AddRequestWrappedMessageNoCustomNames request)
 {
 }