public void DecodeAuthorizationMessageMarshallTest()
        {
            var operation = service_model.FindOperation("DecodeAuthorizationMessage");

            var request         = InstantiateClassGenerator.Execute <DecodeAuthorizationMessageRequest>();
            var marshaller      = new DecodeAuthorizationMessageRequestMarshaller();
            var internalRequest = marshaller.Marshall(request);
            var validator       = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation);

            validator.Validate();


            var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute();
            var context         = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null);
            var response        = DecodeAuthorizationMessageResponseUnmarshaller.Instance.Unmarshall(context)
                                  as DecodeAuthorizationMessageResponse;

            InstantiateClassGenerator.ValidateObjectFullyInstantiated(response);
        }
        public void DecodeAuthorizationMessage_InvalidAuthorizationMessageExceptionMarshallTest()
        {
            var operation = service_model.FindOperation("DecodeAuthorizationMessage");

            var request         = InstantiateClassGenerator.Execute <DecodeAuthorizationMessageRequest>();
            var marshaller      = new DecodeAuthorizationMessageRequestMarshaller();
            var internalRequest = marshaller.Marshall(request);

            var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation);

            validator.Validate();

            var exception       = operation.Exceptions.First(e => e.Name.Equals("InvalidAuthorizationMessageException"));
            var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception);
            var context         = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true);
            var response        = DecodeAuthorizationMessageResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK);

            InstantiateClassGenerator.ValidateObjectFullyInstantiated(response);
        }
        public void DecodeAuthorizationMessageMarshallTest()
        {
            var operation = service_model.FindOperation("DecodeAuthorizationMessage");

            var request = InstantiateClassGenerator.Execute<DecodeAuthorizationMessageRequest>();
            var marshaller = new DecodeAuthorizationMessageRequestMarshaller();
            var internalRequest = marshaller.Marshall(request);
            var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation);
            validator.Validate();


            var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute();
            var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null);
            var response = DecodeAuthorizationMessageResponseUnmarshaller.Instance.Unmarshall(context)
                as DecodeAuthorizationMessageResponse;   
            InstantiateClassGenerator.ValidateObjectFullyInstantiated(response);       
        }