Esempio n. 1
0
        public void ListVPCAssociationAuthorizationsMarshallTest()
        {
            var operation = service_model.FindOperation("ListVPCAssociationAuthorizations");

            var request = InstantiateClassGenerator.Execute<ListVPCAssociationAuthorizationsRequest>();
            var marshaller = new ListVPCAssociationAuthorizationsRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            RequestValidator.Validate("ListVPCAssociationAuthorizations", request, internalRequest, service_model);            

            var webResponse = new WebResponseData
            {
                Headers = {
                    {"x-amzn-RequestId", Guid.NewGuid().ToString()},
                    {"x-amz-crc32","0"}
                }
            };
            
            var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute();            
            var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse);
            ResponseUnmarshaller unmarshaller = ListVPCAssociationAuthorizationsResponseUnmarshaller.Instance;
            var response = unmarshaller.Unmarshall(context)
                as ListVPCAssociationAuthorizationsResponse;   
            InstantiateClassGenerator.ValidateObjectFullyInstantiated(response);       
        }