public void ApplySecurityGroupsToLoadBalancerMarshallTest()
        {
            var operation = service_model.FindOperation("ApplySecurityGroupsToLoadBalancer");

            var request = InstantiateClassGenerator.Execute<ApplySecurityGroupsToLoadBalancerRequest>();
            var marshaller = new ApplySecurityGroupsToLoadBalancerRequestMarshaller();
            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 = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.Instance.Unmarshall(context)
                as ApplySecurityGroupsToLoadBalancerResponse;   
            InstantiateClassGenerator.ValidateObjectFullyInstantiated(response);       
        }
Esempio n. 2
0
        public void ApplySecurityGroupsToLoadBalancerMarshallTest()
        {
            var operation = service_model.FindOperation("ApplySecurityGroupsToLoadBalancer");

            var request         = InstantiateClassGenerator.Execute <ApplySecurityGroupsToLoadBalancerRequest>();
            var marshaller      = new ApplySecurityGroupsToLoadBalancerRequestMarshaller();
            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        = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.Instance.Unmarshall(context)
                                  as ApplySecurityGroupsToLoadBalancerResponse;

            InstantiateClassGenerator.ValidateObjectFullyInstantiated(response);
        }