/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the elasticbeanstalk-2010-12-01.normal.json service model. */ using System; using System.IO; using System.Linq; using System.Text; using Microsoft.VisualStudio.TestTools.UnitTesting; using Amazon.ElasticBeanstalk; using Amazon.ElasticBeanstalk.Model; using Amazon.ElasticBeanstalk.Model.Internal.MarshallTransformations; using Amazon.Runtime.Internal.Transform; using ServiceClientGenerator; using AWSSDK_DotNet35.UnitTests.TestTools; namespace AWSSDK_DotNet35.UnitTests.Marshalling { [TestClass] public class ElasticBeanstalkMarshallingTests { static readonly ServiceModel service_model = Utils.LoadServiceModel("elasticbeanstalk"); [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void AbortEnvironmentUpdateMarshallTest() { var operation = service_model.FindOperation("AbortEnvironmentUpdate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AbortEnvironmentUpdateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void AbortEnvironmentUpdate_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("AbortEnvironmentUpdate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AbortEnvironmentUpdateRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AbortEnvironmentUpdateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ApplyEnvironmentManagedActionMarshallTest() { var operation = service_model.FindOperation("ApplyEnvironmentManagedAction"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ApplyEnvironmentManagedActionRequestMarshaller(); 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 = ApplyEnvironmentManagedActionResponseUnmarshaller.Instance.Unmarshall(context) as ApplyEnvironmentManagedActionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ApplyEnvironmentManagedAction_ElasticBeanstalkServiceExceptionMarshallTest() { var operation = service_model.FindOperation("ApplyEnvironmentManagedAction"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ApplyEnvironmentManagedActionRequestMarshaller(); 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("ElasticBeanstalkServiceException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ApplyEnvironmentManagedActionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ApplyEnvironmentManagedAction_ManagedActionInvalidStateExceptionMarshallTest() { var operation = service_model.FindOperation("ApplyEnvironmentManagedAction"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ApplyEnvironmentManagedActionRequestMarshaller(); 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("ManagedActionInvalidStateException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ApplyEnvironmentManagedActionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void AssociateEnvironmentOperationsRoleMarshallTest() { var operation = service_model.FindOperation("AssociateEnvironmentOperationsRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AssociateEnvironmentOperationsRoleRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void AssociateEnvironmentOperationsRole_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("AssociateEnvironmentOperationsRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AssociateEnvironmentOperationsRoleRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AssociateEnvironmentOperationsRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CheckDNSAvailabilityMarshallTest() { var operation = service_model.FindOperation("CheckDNSAvailability"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CheckDNSAvailabilityRequestMarshaller(); 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 = CheckDNSAvailabilityResponseUnmarshaller.Instance.Unmarshall(context) as CheckDNSAvailabilityResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ComposeEnvironmentsMarshallTest() { var operation = service_model.FindOperation("ComposeEnvironments"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ComposeEnvironmentsRequestMarshaller(); 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 = ComposeEnvironmentsResponseUnmarshaller.Instance.Unmarshall(context) as ComposeEnvironmentsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ComposeEnvironments_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("ComposeEnvironments"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ComposeEnvironmentsRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ComposeEnvironmentsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ComposeEnvironments_TooManyEnvironmentsExceptionMarshallTest() { var operation = service_model.FindOperation("ComposeEnvironments"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ComposeEnvironmentsRequestMarshaller(); 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("TooManyEnvironmentsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ComposeEnvironmentsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateApplicationMarshallTest() { var operation = service_model.FindOperation("CreateApplication"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateApplicationRequestMarshaller(); 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 = CreateApplicationResponseUnmarshaller.Instance.Unmarshall(context) as CreateApplicationResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateApplication_TooManyApplicationsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateApplication"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateApplicationRequestMarshaller(); 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("TooManyApplicationsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateApplicationResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateApplicationVersionMarshallTest() { var operation = service_model.FindOperation("CreateApplicationVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateApplicationVersionRequestMarshaller(); 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 = CreateApplicationVersionResponseUnmarshaller.Instance.Unmarshall(context) as CreateApplicationVersionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateApplicationVersion_CodeBuildNotInServiceRegionExceptionMarshallTest() { var operation = service_model.FindOperation("CreateApplicationVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateApplicationVersionRequestMarshaller(); 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("CodeBuildNotInServiceRegionException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateApplicationVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateApplicationVersion_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("CreateApplicationVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateApplicationVersionRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateApplicationVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateApplicationVersion_S3LocationNotInServiceRegionExceptionMarshallTest() { var operation = service_model.FindOperation("CreateApplicationVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateApplicationVersionRequestMarshaller(); 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("S3LocationNotInServiceRegionException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateApplicationVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateApplicationVersion_TooManyApplicationsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateApplicationVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateApplicationVersionRequestMarshaller(); 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("TooManyApplicationsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateApplicationVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateApplicationVersion_TooManyApplicationVersionsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateApplicationVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateApplicationVersionRequestMarshaller(); 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("TooManyApplicationVersionsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateApplicationVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateConfigurationTemplateMarshallTest() { var operation = service_model.FindOperation("CreateConfigurationTemplate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateConfigurationTemplateRequestMarshaller(); 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 = CreateConfigurationTemplateResponseUnmarshaller.Instance.Unmarshall(context) as CreateConfigurationTemplateResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateConfigurationTemplate_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("CreateConfigurationTemplate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateConfigurationTemplateRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateConfigurationTemplateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateConfigurationTemplate_TooManyBucketsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateConfigurationTemplate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateConfigurationTemplateRequestMarshaller(); 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("TooManyBucketsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateConfigurationTemplateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateConfigurationTemplate_TooManyConfigurationTemplatesExceptionMarshallTest() { var operation = service_model.FindOperation("CreateConfigurationTemplate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateConfigurationTemplateRequestMarshaller(); 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("TooManyConfigurationTemplatesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateConfigurationTemplateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateEnvironmentMarshallTest() { var operation = service_model.FindOperation("CreateEnvironment"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateEnvironmentRequestMarshaller(); 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 = CreateEnvironmentResponseUnmarshaller.Instance.Unmarshall(context) as CreateEnvironmentResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateEnvironment_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("CreateEnvironment"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateEnvironmentRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateEnvironmentResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateEnvironment_TooManyEnvironmentsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateEnvironment"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateEnvironmentRequestMarshaller(); 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("TooManyEnvironmentsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateEnvironmentResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreatePlatformVersionMarshallTest() { var operation = service_model.FindOperation("CreatePlatformVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePlatformVersionRequestMarshaller(); 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 = CreatePlatformVersionResponseUnmarshaller.Instance.Unmarshall(context) as CreatePlatformVersionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreatePlatformVersion_ElasticBeanstalkServiceExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePlatformVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePlatformVersionRequestMarshaller(); 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("ElasticBeanstalkServiceException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePlatformVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreatePlatformVersion_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePlatformVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePlatformVersionRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePlatformVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreatePlatformVersion_TooManyPlatformsExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePlatformVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePlatformVersionRequestMarshaller(); 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("TooManyPlatformsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePlatformVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateStorageLocationMarshallTest() { var operation = service_model.FindOperation("CreateStorageLocation"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateStorageLocationRequestMarshaller(); 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 = CreateStorageLocationResponseUnmarshaller.Instance.Unmarshall(context) as CreateStorageLocationResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateStorageLocation_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("CreateStorageLocation"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateStorageLocationRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateStorageLocationResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateStorageLocation_S3SubscriptionRequiredExceptionMarshallTest() { var operation = service_model.FindOperation("CreateStorageLocation"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateStorageLocationRequestMarshaller(); 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("S3SubscriptionRequiredException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateStorageLocationResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void CreateStorageLocation_TooManyBucketsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateStorageLocation"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateStorageLocationRequestMarshaller(); 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("TooManyBucketsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateStorageLocationResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeleteApplicationMarshallTest() { var operation = service_model.FindOperation("DeleteApplication"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteApplicationRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeleteApplication_OperationInProgressExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteApplication"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteApplicationRequestMarshaller(); 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("OperationInProgressException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteApplicationResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeleteApplicationVersionMarshallTest() { var operation = service_model.FindOperation("DeleteApplicationVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteApplicationVersionRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeleteApplicationVersion_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteApplicationVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteApplicationVersionRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteApplicationVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeleteApplicationVersion_OperationInProgressExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteApplicationVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteApplicationVersionRequestMarshaller(); 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("OperationInProgressException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteApplicationVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeleteApplicationVersion_S3LocationNotInServiceRegionExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteApplicationVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteApplicationVersionRequestMarshaller(); 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("S3LocationNotInServiceRegionException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteApplicationVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeleteApplicationVersion_SourceBundleDeletionExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteApplicationVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteApplicationVersionRequestMarshaller(); 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("SourceBundleDeletionException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteApplicationVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeleteConfigurationTemplateMarshallTest() { var operation = service_model.FindOperation("DeleteConfigurationTemplate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteConfigurationTemplateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeleteConfigurationTemplate_OperationInProgressExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteConfigurationTemplate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteConfigurationTemplateRequestMarshaller(); 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("OperationInProgressException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteConfigurationTemplateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeleteEnvironmentConfigurationMarshallTest() { var operation = service_model.FindOperation("DeleteEnvironmentConfiguration"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteEnvironmentConfigurationRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeletePlatformVersionMarshallTest() { var operation = service_model.FindOperation("DeletePlatformVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePlatformVersionRequestMarshaller(); 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 = DeletePlatformVersionResponseUnmarshaller.Instance.Unmarshall(context) as DeletePlatformVersionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeletePlatformVersion_ElasticBeanstalkServiceExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePlatformVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePlatformVersionRequestMarshaller(); 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("ElasticBeanstalkServiceException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePlatformVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeletePlatformVersion_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePlatformVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePlatformVersionRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePlatformVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeletePlatformVersion_OperationInProgressExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePlatformVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePlatformVersionRequestMarshaller(); 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("OperationInProgressException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePlatformVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DeletePlatformVersion_PlatformVersionStillReferencedExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePlatformVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePlatformVersionRequestMarshaller(); 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("PlatformVersionStillReferencedException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePlatformVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeAccountAttributesMarshallTest() { var operation = service_model.FindOperation("DescribeAccountAttributes"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeAccountAttributesRequestMarshaller(); 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 = DescribeAccountAttributesResponseUnmarshaller.Instance.Unmarshall(context) as DescribeAccountAttributesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeAccountAttributes_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("DescribeAccountAttributes"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeAccountAttributesRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DescribeAccountAttributesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeApplicationsMarshallTest() { var operation = service_model.FindOperation("DescribeApplications"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeApplicationsRequestMarshaller(); 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 = DescribeApplicationsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeApplicationsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeApplicationVersionsMarshallTest() { var operation = service_model.FindOperation("DescribeApplicationVersions"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeApplicationVersionsRequestMarshaller(); 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 = DescribeApplicationVersionsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeApplicationVersionsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeConfigurationOptionsMarshallTest() { var operation = service_model.FindOperation("DescribeConfigurationOptions"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeConfigurationOptionsRequestMarshaller(); 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 = DescribeConfigurationOptionsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeConfigurationOptionsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeConfigurationOptions_TooManyBucketsExceptionMarshallTest() { var operation = service_model.FindOperation("DescribeConfigurationOptions"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeConfigurationOptionsRequestMarshaller(); 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("TooManyBucketsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DescribeConfigurationOptionsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeConfigurationSettingsMarshallTest() { var operation = service_model.FindOperation("DescribeConfigurationSettings"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeConfigurationSettingsRequestMarshaller(); 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 = DescribeConfigurationSettingsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeConfigurationSettingsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeConfigurationSettings_TooManyBucketsExceptionMarshallTest() { var operation = service_model.FindOperation("DescribeConfigurationSettings"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeConfigurationSettingsRequestMarshaller(); 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("TooManyBucketsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DescribeConfigurationSettingsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeEnvironmentHealthMarshallTest() { var operation = service_model.FindOperation("DescribeEnvironmentHealth"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeEnvironmentHealthRequestMarshaller(); 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 = DescribeEnvironmentHealthResponseUnmarshaller.Instance.Unmarshall(context) as DescribeEnvironmentHealthResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeEnvironmentHealth_ElasticBeanstalkServiceExceptionMarshallTest() { var operation = service_model.FindOperation("DescribeEnvironmentHealth"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeEnvironmentHealthRequestMarshaller(); 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("ElasticBeanstalkServiceException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DescribeEnvironmentHealthResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeEnvironmentHealth_InvalidRequestExceptionMarshallTest() { var operation = service_model.FindOperation("DescribeEnvironmentHealth"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeEnvironmentHealthRequestMarshaller(); 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("InvalidRequestException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DescribeEnvironmentHealthResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeEnvironmentManagedActionHistoryMarshallTest() { var operation = service_model.FindOperation("DescribeEnvironmentManagedActionHistory"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeEnvironmentManagedActionHistoryRequestMarshaller(); 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 = DescribeEnvironmentManagedActionHistoryResponseUnmarshaller.Instance.Unmarshall(context) as DescribeEnvironmentManagedActionHistoryResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeEnvironmentManagedActionHistory_ElasticBeanstalkServiceExceptionMarshallTest() { var operation = service_model.FindOperation("DescribeEnvironmentManagedActionHistory"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeEnvironmentManagedActionHistoryRequestMarshaller(); 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("ElasticBeanstalkServiceException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DescribeEnvironmentManagedActionHistoryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeEnvironmentManagedActionsMarshallTest() { var operation = service_model.FindOperation("DescribeEnvironmentManagedActions"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeEnvironmentManagedActionsRequestMarshaller(); 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 = DescribeEnvironmentManagedActionsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeEnvironmentManagedActionsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeEnvironmentManagedActions_ElasticBeanstalkServiceExceptionMarshallTest() { var operation = service_model.FindOperation("DescribeEnvironmentManagedActions"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeEnvironmentManagedActionsRequestMarshaller(); 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("ElasticBeanstalkServiceException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DescribeEnvironmentManagedActionsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeEnvironmentResourcesMarshallTest() { var operation = service_model.FindOperation("DescribeEnvironmentResources"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeEnvironmentResourcesRequestMarshaller(); 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 = DescribeEnvironmentResourcesResponseUnmarshaller.Instance.Unmarshall(context) as DescribeEnvironmentResourcesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeEnvironmentResources_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("DescribeEnvironmentResources"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeEnvironmentResourcesRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DescribeEnvironmentResourcesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeEnvironmentsMarshallTest() { var operation = service_model.FindOperation("DescribeEnvironments"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeEnvironmentsRequestMarshaller(); 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 = DescribeEnvironmentsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeEnvironmentsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeEventsMarshallTest() { var operation = service_model.FindOperation("DescribeEvents"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeEventsRequestMarshaller(); 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 = DescribeEventsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeEventsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeInstancesHealthMarshallTest() { var operation = service_model.FindOperation("DescribeInstancesHealth"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeInstancesHealthRequestMarshaller(); 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 = DescribeInstancesHealthResponseUnmarshaller.Instance.Unmarshall(context) as DescribeInstancesHealthResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeInstancesHealth_ElasticBeanstalkServiceExceptionMarshallTest() { var operation = service_model.FindOperation("DescribeInstancesHealth"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeInstancesHealthRequestMarshaller(); 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("ElasticBeanstalkServiceException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DescribeInstancesHealthResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribeInstancesHealth_InvalidRequestExceptionMarshallTest() { var operation = service_model.FindOperation("DescribeInstancesHealth"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribeInstancesHealthRequestMarshaller(); 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("InvalidRequestException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DescribeInstancesHealthResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribePlatformVersionMarshallTest() { var operation = service_model.FindOperation("DescribePlatformVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribePlatformVersionRequestMarshaller(); 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 = DescribePlatformVersionResponseUnmarshaller.Instance.Unmarshall(context) as DescribePlatformVersionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribePlatformVersion_ElasticBeanstalkServiceExceptionMarshallTest() { var operation = service_model.FindOperation("DescribePlatformVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribePlatformVersionRequestMarshaller(); 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("ElasticBeanstalkServiceException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DescribePlatformVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DescribePlatformVersion_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("DescribePlatformVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DescribePlatformVersionRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DescribePlatformVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DisassociateEnvironmentOperationsRoleMarshallTest() { var operation = service_model.FindOperation("DisassociateEnvironmentOperationsRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DisassociateEnvironmentOperationsRoleRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void DisassociateEnvironmentOperationsRole_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("DisassociateEnvironmentOperationsRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DisassociateEnvironmentOperationsRoleRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DisassociateEnvironmentOperationsRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ListAvailableSolutionStacksMarshallTest() { var operation = service_model.FindOperation("ListAvailableSolutionStacks"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAvailableSolutionStacksRequestMarshaller(); 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 = ListAvailableSolutionStacksResponseUnmarshaller.Instance.Unmarshall(context) as ListAvailableSolutionStacksResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ListPlatformBranchesMarshallTest() { var operation = service_model.FindOperation("ListPlatformBranches"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPlatformBranchesRequestMarshaller(); 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 = ListPlatformBranchesResponseUnmarshaller.Instance.Unmarshall(context) as ListPlatformBranchesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ListPlatformVersionsMarshallTest() { var operation = service_model.FindOperation("ListPlatformVersions"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPlatformVersionsRequestMarshaller(); 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 = ListPlatformVersionsResponseUnmarshaller.Instance.Unmarshall(context) as ListPlatformVersionsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ListPlatformVersions_ElasticBeanstalkServiceExceptionMarshallTest() { var operation = service_model.FindOperation("ListPlatformVersions"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPlatformVersionsRequestMarshaller(); 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("ElasticBeanstalkServiceException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListPlatformVersionsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ListPlatformVersions_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("ListPlatformVersions"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPlatformVersionsRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListPlatformVersionsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ListTagsForResourceMarshallTest() { var operation = service_model.FindOperation("ListTagsForResource"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListTagsForResourceRequestMarshaller(); 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 = ListTagsForResourceResponseUnmarshaller.Instance.Unmarshall(context) as ListTagsForResourceResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ListTagsForResource_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("ListTagsForResource"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListTagsForResourceRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListTagsForResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ListTagsForResource_ResourceNotFoundExceptionMarshallTest() { var operation = service_model.FindOperation("ListTagsForResource"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListTagsForResourceRequestMarshaller(); 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("ResourceNotFoundException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListTagsForResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ListTagsForResource_ResourceTypeNotSupportedExceptionMarshallTest() { var operation = service_model.FindOperation("ListTagsForResource"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListTagsForResourceRequestMarshaller(); 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("ResourceTypeNotSupportedException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListTagsForResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void RebuildEnvironmentMarshallTest() { var operation = service_model.FindOperation("RebuildEnvironment"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RebuildEnvironmentRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void RebuildEnvironment_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("RebuildEnvironment"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RebuildEnvironmentRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = RebuildEnvironmentResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void RequestEnvironmentInfoMarshallTest() { var operation = service_model.FindOperation("RequestEnvironmentInfo"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RequestEnvironmentInfoRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void RestartAppServerMarshallTest() { var operation = service_model.FindOperation("RestartAppServer"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RestartAppServerRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void RetrieveEnvironmentInfoMarshallTest() { var operation = service_model.FindOperation("RetrieveEnvironmentInfo"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RetrieveEnvironmentInfoRequestMarshaller(); 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 = RetrieveEnvironmentInfoResponseUnmarshaller.Instance.Unmarshall(context) as RetrieveEnvironmentInfoResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void SwapEnvironmentCNAMEsMarshallTest() { var operation = service_model.FindOperation("SwapEnvironmentCNAMEs"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SwapEnvironmentCNAMEsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void TerminateEnvironmentMarshallTest() { var operation = service_model.FindOperation("TerminateEnvironment"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TerminateEnvironmentRequestMarshaller(); 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 = TerminateEnvironmentResponseUnmarshaller.Instance.Unmarshall(context) as TerminateEnvironmentResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void TerminateEnvironment_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("TerminateEnvironment"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TerminateEnvironmentRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TerminateEnvironmentResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateApplicationMarshallTest() { var operation = service_model.FindOperation("UpdateApplication"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateApplicationRequestMarshaller(); 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 = UpdateApplicationResponseUnmarshaller.Instance.Unmarshall(context) as UpdateApplicationResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateApplicationResourceLifecycleMarshallTest() { var operation = service_model.FindOperation("UpdateApplicationResourceLifecycle"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateApplicationResourceLifecycleRequestMarshaller(); 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 = UpdateApplicationResourceLifecycleResponseUnmarshaller.Instance.Unmarshall(context) as UpdateApplicationResourceLifecycleResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateApplicationResourceLifecycle_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateApplicationResourceLifecycle"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateApplicationResourceLifecycleRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateApplicationResourceLifecycleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateApplicationVersionMarshallTest() { var operation = service_model.FindOperation("UpdateApplicationVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateApplicationVersionRequestMarshaller(); 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 = UpdateApplicationVersionResponseUnmarshaller.Instance.Unmarshall(context) as UpdateApplicationVersionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateConfigurationTemplateMarshallTest() { var operation = service_model.FindOperation("UpdateConfigurationTemplate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateConfigurationTemplateRequestMarshaller(); 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 = UpdateConfigurationTemplateResponseUnmarshaller.Instance.Unmarshall(context) as UpdateConfigurationTemplateResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateConfigurationTemplate_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateConfigurationTemplate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateConfigurationTemplateRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateConfigurationTemplateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateConfigurationTemplate_TooManyBucketsExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateConfigurationTemplate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateConfigurationTemplateRequestMarshaller(); 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("TooManyBucketsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateConfigurationTemplateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateEnvironmentMarshallTest() { var operation = service_model.FindOperation("UpdateEnvironment"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateEnvironmentRequestMarshaller(); 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 = UpdateEnvironmentResponseUnmarshaller.Instance.Unmarshall(context) as UpdateEnvironmentResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateEnvironment_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateEnvironment"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateEnvironmentRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateEnvironmentResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateEnvironment_TooManyBucketsExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateEnvironment"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateEnvironmentRequestMarshaller(); 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("TooManyBucketsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateEnvironmentResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateTagsForResourceMarshallTest() { var operation = service_model.FindOperation("UpdateTagsForResource"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateTagsForResourceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateTagsForResource_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateTagsForResource"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateTagsForResourceRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateTagsForResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateTagsForResource_OperationInProgressExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateTagsForResource"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateTagsForResourceRequestMarshaller(); 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("OperationInProgressException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateTagsForResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateTagsForResource_ResourceNotFoundExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateTagsForResource"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateTagsForResourceRequestMarshaller(); 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("ResourceNotFoundException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateTagsForResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateTagsForResource_ResourceTypeNotSupportedExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateTagsForResource"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateTagsForResourceRequestMarshaller(); 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("ResourceTypeNotSupportedException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateTagsForResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void UpdateTagsForResource_TooManyTagsExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateTagsForResource"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateTagsForResourceRequestMarshaller(); 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("TooManyTagsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateTagsForResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ValidateConfigurationSettingsMarshallTest() { var operation = service_model.FindOperation("ValidateConfigurationSettings"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ValidateConfigurationSettingsRequestMarshaller(); 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 = ValidateConfigurationSettingsResponseUnmarshaller.Instance.Unmarshall(context) as ValidateConfigurationSettingsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ValidateConfigurationSettings_InsufficientPrivilegesExceptionMarshallTest() { var operation = service_model.FindOperation("ValidateConfigurationSettings"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ValidateConfigurationSettingsRequestMarshaller(); 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("InsufficientPrivilegesException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ValidateConfigurationSettingsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("ElasticBeanstalk")] public void ValidateConfigurationSettings_TooManyBucketsExceptionMarshallTest() { var operation = service_model.FindOperation("ValidateConfigurationSettings"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ValidateConfigurationSettingsRequestMarshaller(); 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("TooManyBucketsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ValidateConfigurationSettingsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } } }