/* * 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 iam-2010-05-08.normal.json service model. */ using System; using System.IO; using System.Linq; using System.Text; using Microsoft.VisualStudio.TestTools.UnitTesting; using Amazon.IdentityManagement; using Amazon.IdentityManagement.Model; using Amazon.IdentityManagement.Model.Internal.MarshallTransformations; using Amazon.Runtime.Internal.Transform; using ServiceClientGenerator; using AWSSDK_DotNet35.UnitTests.TestTools; namespace AWSSDK_DotNet35.UnitTests.Marshalling { [TestClass] public class IdentityManagementServiceMarshallingTests { static readonly ServiceModel service_model = Utils.LoadServiceModel("iam"); [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddClientIDToOpenIDConnectProviderMarshallTest() { var operation = service_model.FindOperation("AddClientIDToOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddClientIDToOpenIDConnectProviderRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddClientIDToOpenIDConnectProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("AddClientIDToOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddClientIDToOpenIDConnectProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AddClientIDToOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddClientIDToOpenIDConnectProvider_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("AddClientIDToOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddClientIDToOpenIDConnectProviderRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AddClientIDToOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddClientIDToOpenIDConnectProvider_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("AddClientIDToOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddClientIDToOpenIDConnectProviderRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AddClientIDToOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddClientIDToOpenIDConnectProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("AddClientIDToOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddClientIDToOpenIDConnectProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AddClientIDToOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddRoleToInstanceProfileMarshallTest() { var operation = service_model.FindOperation("AddRoleToInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddRoleToInstanceProfileRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddRoleToInstanceProfile_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("AddRoleToInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddRoleToInstanceProfileRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AddRoleToInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddRoleToInstanceProfile_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("AddRoleToInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddRoleToInstanceProfileRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AddRoleToInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddRoleToInstanceProfile_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("AddRoleToInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddRoleToInstanceProfileRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AddRoleToInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddRoleToInstanceProfile_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("AddRoleToInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddRoleToInstanceProfileRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AddRoleToInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddRoleToInstanceProfile_UnmodifiableEntityExceptionMarshallTest() { var operation = service_model.FindOperation("AddRoleToInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddRoleToInstanceProfileRequestMarshaller(); 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("UnmodifiableEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AddRoleToInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddUserToGroupMarshallTest() { var operation = service_model.FindOperation("AddUserToGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddUserToGroupRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddUserToGroup_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("AddUserToGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddUserToGroupRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AddUserToGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddUserToGroup_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("AddUserToGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddUserToGroupRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AddUserToGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AddUserToGroup_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("AddUserToGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AddUserToGroupRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AddUserToGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachGroupPolicyMarshallTest() { var operation = service_model.FindOperation("AttachGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachGroupPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachGroupPolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("AttachGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachGroupPolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachGroupPolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("AttachGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachGroupPolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachGroupPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("AttachGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachGroupPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachGroupPolicy_PolicyNotAttachableExceptionMarshallTest() { var operation = service_model.FindOperation("AttachGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachGroupPolicyRequestMarshaller(); 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("PolicyNotAttachableException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachGroupPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("AttachGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachGroupPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachRolePolicyMarshallTest() { var operation = service_model.FindOperation("AttachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachRolePolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachRolePolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("AttachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachRolePolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachRolePolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("AttachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachRolePolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachRolePolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("AttachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachRolePolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachRolePolicy_PolicyNotAttachableExceptionMarshallTest() { var operation = service_model.FindOperation("AttachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachRolePolicyRequestMarshaller(); 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("PolicyNotAttachableException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachRolePolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("AttachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachRolePolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachRolePolicy_UnmodifiableEntityExceptionMarshallTest() { var operation = service_model.FindOperation("AttachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachRolePolicyRequestMarshaller(); 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("UnmodifiableEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachUserPolicyMarshallTest() { var operation = service_model.FindOperation("AttachUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachUserPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachUserPolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("AttachUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachUserPolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachUserPolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("AttachUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachUserPolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachUserPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("AttachUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachUserPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachUserPolicy_PolicyNotAttachableExceptionMarshallTest() { var operation = service_model.FindOperation("AttachUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachUserPolicyRequestMarshaller(); 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("PolicyNotAttachableException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void AttachUserPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("AttachUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new AttachUserPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = AttachUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ChangePasswordMarshallTest() { var operation = service_model.FindOperation("ChangePassword"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ChangePasswordRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ChangePassword_EntityTemporarilyUnmodifiableExceptionMarshallTest() { var operation = service_model.FindOperation("ChangePassword"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ChangePasswordRequestMarshaller(); 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("EntityTemporarilyUnmodifiableException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ChangePasswordResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ChangePassword_InvalidUserTypeExceptionMarshallTest() { var operation = service_model.FindOperation("ChangePassword"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ChangePasswordRequestMarshaller(); 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("InvalidUserTypeException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ChangePasswordResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ChangePassword_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("ChangePassword"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ChangePasswordRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ChangePasswordResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ChangePassword_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ChangePassword"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ChangePasswordRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ChangePasswordResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ChangePassword_PasswordPolicyViolationExceptionMarshallTest() { var operation = service_model.FindOperation("ChangePassword"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ChangePasswordRequestMarshaller(); 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("PasswordPolicyViolationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ChangePasswordResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ChangePassword_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ChangePassword"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ChangePasswordRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ChangePasswordResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateAccessKeyMarshallTest() { var operation = service_model.FindOperation("CreateAccessKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateAccessKeyRequestMarshaller(); 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 = CreateAccessKeyResponseUnmarshaller.Instance.Unmarshall(context) as CreateAccessKeyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateAccessKey_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreateAccessKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateAccessKeyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateAccessKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateAccessKey_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("CreateAccessKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateAccessKeyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateAccessKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateAccessKey_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreateAccessKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateAccessKeyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateAccessKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateAccountAliasMarshallTest() { var operation = service_model.FindOperation("CreateAccountAlias"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateAccountAliasRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateAccountAlias_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("CreateAccountAlias"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateAccountAliasRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateAccountAliasResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateAccountAlias_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateAccountAlias"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateAccountAliasRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateAccountAliasResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateAccountAlias_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreateAccountAlias"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateAccountAliasRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateAccountAliasResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateAccountAlias_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreateAccountAlias"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateAccountAliasRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateAccountAliasResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateGroupMarshallTest() { var operation = service_model.FindOperation("CreateGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateGroupRequestMarshaller(); 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 = CreateGroupResponseUnmarshaller.Instance.Unmarshall(context) as CreateGroupResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateGroup_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateGroupRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateGroup_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreateGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateGroupRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateGroup_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("CreateGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateGroupRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateGroup_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreateGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateGroupRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateInstanceProfileMarshallTest() { var operation = service_model.FindOperation("CreateInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateInstanceProfileRequestMarshaller(); 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 = CreateInstanceProfileResponseUnmarshaller.Instance.Unmarshall(context) as CreateInstanceProfileResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateInstanceProfile_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("CreateInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateInstanceProfileRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateInstanceProfile_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateInstanceProfileRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateInstanceProfile_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("CreateInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateInstanceProfileRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateInstanceProfile_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreateInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateInstanceProfileRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateInstanceProfile_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreateInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateInstanceProfileRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateLoginProfileMarshallTest() { var operation = service_model.FindOperation("CreateLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateLoginProfileRequestMarshaller(); 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 = CreateLoginProfileResponseUnmarshaller.Instance.Unmarshall(context) as CreateLoginProfileResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateLoginProfile_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateLoginProfileRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateLoginProfile_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreateLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateLoginProfileRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateLoginProfile_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("CreateLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateLoginProfileRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateLoginProfile_PasswordPolicyViolationExceptionMarshallTest() { var operation = service_model.FindOperation("CreateLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateLoginProfileRequestMarshaller(); 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("PasswordPolicyViolationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateLoginProfile_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreateLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateLoginProfileRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateOpenIDConnectProviderMarshallTest() { var operation = service_model.FindOperation("CreateOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateOpenIDConnectProviderRequestMarshaller(); 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 = CreateOpenIDConnectProviderResponseUnmarshaller.Instance.Unmarshall(context) as CreateOpenIDConnectProviderResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateOpenIDConnectProvider_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("CreateOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateOpenIDConnectProviderRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateOpenIDConnectProvider_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateOpenIDConnectProviderRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateOpenIDConnectProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("CreateOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateOpenIDConnectProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateOpenIDConnectProvider_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreateOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateOpenIDConnectProviderRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateOpenIDConnectProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreateOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateOpenIDConnectProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicyMarshallTest() { var operation = service_model.FindOperation("CreatePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyRequestMarshaller(); 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 = CreatePolicyResponseUnmarshaller.Instance.Unmarshall(context) as CreatePolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicy_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicy_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicy_MalformedPolicyDocumentExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyRequestMarshaller(); 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("MalformedPolicyDocumentException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicyVersionMarshallTest() { var operation = service_model.FindOperation("CreatePolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyVersionRequestMarshaller(); 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 = CreatePolicyVersionResponseUnmarshaller.Instance.Unmarshall(context) as CreatePolicyVersionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicyVersion_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyVersionRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicyVersion_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyVersionRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicyVersion_MalformedPolicyDocumentExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyVersionRequestMarshaller(); 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("MalformedPolicyDocumentException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicyVersion_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyVersionRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreatePolicyVersion_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreatePolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreatePolicyVersionRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreatePolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateRoleMarshallTest() { var operation = service_model.FindOperation("CreateRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateRoleRequestMarshaller(); 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 = CreateRoleResponseUnmarshaller.Instance.Unmarshall(context) as CreateRoleResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateRole_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("CreateRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateRoleRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateRole_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateRoleRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateRole_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("CreateRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateRoleRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateRole_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreateRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateRoleRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateRole_MalformedPolicyDocumentExceptionMarshallTest() { var operation = service_model.FindOperation("CreateRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateRoleRequestMarshaller(); 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("MalformedPolicyDocumentException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateRole_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreateRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateRoleRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateSAMLProviderMarshallTest() { var operation = service_model.FindOperation("CreateSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateSAMLProviderRequestMarshaller(); 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 = CreateSAMLProviderResponseUnmarshaller.Instance.Unmarshall(context) as CreateSAMLProviderResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateSAMLProvider_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("CreateSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateSAMLProviderRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateSAMLProvider_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateSAMLProviderRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateSAMLProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("CreateSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateSAMLProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateSAMLProvider_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreateSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateSAMLProviderRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateSAMLProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreateSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateSAMLProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateServiceLinkedRoleMarshallTest() { var operation = service_model.FindOperation("CreateServiceLinkedRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateServiceLinkedRoleRequestMarshaller(); 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 = CreateServiceLinkedRoleResponseUnmarshaller.Instance.Unmarshall(context) as CreateServiceLinkedRoleResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateServiceLinkedRole_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("CreateServiceLinkedRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateServiceLinkedRoleRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateServiceLinkedRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateServiceLinkedRole_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreateServiceLinkedRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateServiceLinkedRoleRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateServiceLinkedRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateServiceLinkedRole_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("CreateServiceLinkedRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateServiceLinkedRoleRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateServiceLinkedRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateServiceLinkedRole_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreateServiceLinkedRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateServiceLinkedRoleRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateServiceLinkedRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateServiceSpecificCredentialMarshallTest() { var operation = service_model.FindOperation("CreateServiceSpecificCredential"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateServiceSpecificCredentialRequestMarshaller(); 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 = CreateServiceSpecificCredentialResponseUnmarshaller.Instance.Unmarshall(context) as CreateServiceSpecificCredentialResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateServiceSpecificCredential_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreateServiceSpecificCredential"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateServiceSpecificCredentialRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateServiceSpecificCredentialResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateServiceSpecificCredential_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("CreateServiceSpecificCredential"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateServiceSpecificCredentialRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateServiceSpecificCredentialResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateServiceSpecificCredential_ServiceNotSupportedExceptionMarshallTest() { var operation = service_model.FindOperation("CreateServiceSpecificCredential"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateServiceSpecificCredentialRequestMarshaller(); 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("ServiceNotSupportedException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateServiceSpecificCredentialResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateUserMarshallTest() { var operation = service_model.FindOperation("CreateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateUserRequestMarshaller(); 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 = CreateUserResponseUnmarshaller.Instance.Unmarshall(context) as CreateUserResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateUser_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("CreateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateUserRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateUser_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateUserRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateUser_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("CreateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateUserRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateUser_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateUserRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateUser_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("CreateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateUserRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateUser_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateUserRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateVirtualMFADeviceMarshallTest() { var operation = service_model.FindOperation("CreateVirtualMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateVirtualMFADeviceRequestMarshaller(); 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 = CreateVirtualMFADeviceResponseUnmarshaller.Instance.Unmarshall(context) as CreateVirtualMFADeviceResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateVirtualMFADevice_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("CreateVirtualMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateVirtualMFADeviceRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateVirtualMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateVirtualMFADevice_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("CreateVirtualMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateVirtualMFADeviceRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateVirtualMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateVirtualMFADevice_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("CreateVirtualMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateVirtualMFADeviceRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateVirtualMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateVirtualMFADevice_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("CreateVirtualMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateVirtualMFADeviceRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateVirtualMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void CreateVirtualMFADevice_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("CreateVirtualMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new CreateVirtualMFADeviceRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = CreateVirtualMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeactivateMFADeviceMarshallTest() { var operation = service_model.FindOperation("DeactivateMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeactivateMFADeviceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeactivateMFADevice_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("DeactivateMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeactivateMFADeviceRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeactivateMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeactivateMFADevice_EntityTemporarilyUnmodifiableExceptionMarshallTest() { var operation = service_model.FindOperation("DeactivateMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeactivateMFADeviceRequestMarshaller(); 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("EntityTemporarilyUnmodifiableException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeactivateMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeactivateMFADevice_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeactivateMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeactivateMFADeviceRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeactivateMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeactivateMFADevice_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeactivateMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeactivateMFADeviceRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeactivateMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeactivateMFADevice_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeactivateMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeactivateMFADeviceRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeactivateMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccessKeyMarshallTest() { var operation = service_model.FindOperation("DeleteAccessKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccessKeyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccessKey_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteAccessKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccessKeyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteAccessKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccessKey_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteAccessKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccessKeyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteAccessKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccessKey_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteAccessKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccessKeyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteAccessKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccountAliasMarshallTest() { var operation = service_model.FindOperation("DeleteAccountAlias"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccountAliasRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccountAlias_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteAccountAlias"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccountAliasRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteAccountAliasResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccountAlias_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteAccountAlias"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccountAliasRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteAccountAliasResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccountAlias_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteAccountAlias"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccountAliasRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteAccountAliasResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccountAlias_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteAccountAlias"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccountAliasRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteAccountAliasResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccountPasswordPolicyMarshallTest() { var operation = service_model.FindOperation("DeleteAccountPasswordPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccountPasswordPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccountPasswordPolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteAccountPasswordPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccountPasswordPolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteAccountPasswordPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccountPasswordPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteAccountPasswordPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccountPasswordPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteAccountPasswordPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteAccountPasswordPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteAccountPasswordPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteAccountPasswordPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteAccountPasswordPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteGroupMarshallTest() { var operation = service_model.FindOperation("DeleteGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteGroupRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteGroup_DeleteConflictExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteGroupRequestMarshaller(); 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("DeleteConflictException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteGroup_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteGroupRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteGroup_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteGroupRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteGroup_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteGroupRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteGroupPolicyMarshallTest() { var operation = service_model.FindOperation("DeleteGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteGroupPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteGroupPolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteGroupPolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteGroupPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteGroupPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteGroupPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteGroupPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteInstanceProfileMarshallTest() { var operation = service_model.FindOperation("DeleteInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteInstanceProfileRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteInstanceProfile_DeleteConflictExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteInstanceProfileRequestMarshaller(); 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("DeleteConflictException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteInstanceProfile_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteInstanceProfileRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteInstanceProfile_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteInstanceProfileRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteInstanceProfile_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteInstanceProfileRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteLoginProfileMarshallTest() { var operation = service_model.FindOperation("DeleteLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteLoginProfileRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteLoginProfile_EntityTemporarilyUnmodifiableExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteLoginProfileRequestMarshaller(); 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("EntityTemporarilyUnmodifiableException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteLoginProfile_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteLoginProfileRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteLoginProfile_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteLoginProfileRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteLoginProfile_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteLoginProfileRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteOpenIDConnectProviderMarshallTest() { var operation = service_model.FindOperation("DeleteOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteOpenIDConnectProviderRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteOpenIDConnectProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteOpenIDConnectProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteOpenIDConnectProvider_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteOpenIDConnectProviderRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteOpenIDConnectProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteOpenIDConnectProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeletePolicyMarshallTest() { var operation = service_model.FindOperation("DeletePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeletePolicy_DeleteConflictExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePolicyRequestMarshaller(); 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("DeleteConflictException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeletePolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeletePolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeletePolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeletePolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeletePolicyVersionMarshallTest() { var operation = service_model.FindOperation("DeletePolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePolicyVersionRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeletePolicyVersion_DeleteConflictExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePolicyVersionRequestMarshaller(); 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("DeleteConflictException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeletePolicyVersion_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePolicyVersionRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeletePolicyVersion_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePolicyVersionRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeletePolicyVersion_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePolicyVersionRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeletePolicyVersion_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeletePolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeletePolicyVersionRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeletePolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRoleMarshallTest() { var operation = service_model.FindOperation("DeleteRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRoleRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRole_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRoleRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRole_DeleteConflictExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRoleRequestMarshaller(); 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("DeleteConflictException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRole_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRoleRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRole_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRoleRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRole_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRoleRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRole_UnmodifiableEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRoleRequestMarshaller(); 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("UnmodifiableEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRolePermissionsBoundaryMarshallTest() { var operation = service_model.FindOperation("DeleteRolePermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRolePermissionsBoundaryRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRolePermissionsBoundary_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRolePermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRolePermissionsBoundaryRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRolePermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRolePermissionsBoundary_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRolePermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRolePermissionsBoundaryRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRolePermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRolePermissionsBoundary_UnmodifiableEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRolePermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRolePermissionsBoundaryRequestMarshaller(); 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("UnmodifiableEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRolePermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRolePolicyMarshallTest() { var operation = service_model.FindOperation("DeleteRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRolePolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRolePolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRolePolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRolePolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRolePolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRolePolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRolePolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteRolePolicy_UnmodifiableEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteRolePolicyRequestMarshaller(); 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("UnmodifiableEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteSAMLProviderMarshallTest() { var operation = service_model.FindOperation("DeleteSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteSAMLProviderRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteSAMLProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteSAMLProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteSAMLProvider_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteSAMLProviderRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteSAMLProvider_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteSAMLProviderRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteSAMLProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteSAMLProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteServerCertificateMarshallTest() { var operation = service_model.FindOperation("DeleteServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteServerCertificateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteServerCertificate_DeleteConflictExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteServerCertificateRequestMarshaller(); 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("DeleteConflictException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteServerCertificate_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteServerCertificateRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteServerCertificate_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteServerCertificateRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteServerCertificate_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteServerCertificateRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteServiceLinkedRoleMarshallTest() { var operation = service_model.FindOperation("DeleteServiceLinkedRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteServiceLinkedRoleRequestMarshaller(); 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 = DeleteServiceLinkedRoleResponseUnmarshaller.Instance.Unmarshall(context) as DeleteServiceLinkedRoleResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteServiceLinkedRole_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteServiceLinkedRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteServiceLinkedRoleRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteServiceLinkedRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteServiceLinkedRole_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteServiceLinkedRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteServiceLinkedRoleRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteServiceLinkedRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteServiceLinkedRole_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteServiceLinkedRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteServiceLinkedRoleRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteServiceLinkedRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteServiceSpecificCredentialMarshallTest() { var operation = service_model.FindOperation("DeleteServiceSpecificCredential"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteServiceSpecificCredentialRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteServiceSpecificCredential_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteServiceSpecificCredential"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteServiceSpecificCredentialRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteServiceSpecificCredentialResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteSigningCertificateMarshallTest() { var operation = service_model.FindOperation("DeleteSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteSigningCertificateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteSigningCertificate_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteSigningCertificateRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteSigningCertificate_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteSigningCertificateRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteSigningCertificate_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteSigningCertificateRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteSigningCertificate_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteSigningCertificateRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteSSHPublicKeyMarshallTest() { var operation = service_model.FindOperation("DeleteSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteSSHPublicKeyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteSSHPublicKey_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteSSHPublicKeyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteSSHPublicKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUserMarshallTest() { var operation = service_model.FindOperation("DeleteUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUser_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUser_DeleteConflictExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserRequestMarshaller(); 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("DeleteConflictException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUser_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUser_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUser_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUserPermissionsBoundaryMarshallTest() { var operation = service_model.FindOperation("DeleteUserPermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserPermissionsBoundaryRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUserPermissionsBoundary_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteUserPermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserPermissionsBoundaryRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteUserPermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUserPermissionsBoundary_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteUserPermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserPermissionsBoundaryRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteUserPermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUserPolicyMarshallTest() { var operation = service_model.FindOperation("DeleteUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUserPolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserPolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUserPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteUserPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteUserPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteVirtualMFADeviceMarshallTest() { var operation = service_model.FindOperation("DeleteVirtualMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteVirtualMFADeviceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteVirtualMFADevice_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteVirtualMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteVirtualMFADeviceRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteVirtualMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteVirtualMFADevice_DeleteConflictExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteVirtualMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteVirtualMFADeviceRequestMarshaller(); 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("DeleteConflictException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteVirtualMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteVirtualMFADevice_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteVirtualMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteVirtualMFADeviceRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteVirtualMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteVirtualMFADevice_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteVirtualMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteVirtualMFADeviceRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteVirtualMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DeleteVirtualMFADevice_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DeleteVirtualMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DeleteVirtualMFADeviceRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DeleteVirtualMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachGroupPolicyMarshallTest() { var operation = service_model.FindOperation("DetachGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachGroupPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachGroupPolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("DetachGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachGroupPolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachGroupPolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DetachGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachGroupPolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachGroupPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DetachGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachGroupPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachGroupPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DetachGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachGroupPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachRolePolicyMarshallTest() { var operation = service_model.FindOperation("DetachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachRolePolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachRolePolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("DetachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachRolePolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachRolePolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DetachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachRolePolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachRolePolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DetachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachRolePolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachRolePolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DetachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachRolePolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachRolePolicy_UnmodifiableEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DetachRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachRolePolicyRequestMarshaller(); 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("UnmodifiableEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachUserPolicyMarshallTest() { var operation = service_model.FindOperation("DetachUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachUserPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachUserPolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("DetachUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachUserPolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachUserPolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("DetachUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachUserPolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachUserPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("DetachUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachUserPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void DetachUserPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("DetachUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new DetachUserPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = DetachUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void EnableMFADeviceMarshallTest() { var operation = service_model.FindOperation("EnableMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new EnableMFADeviceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void EnableMFADevice_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("EnableMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new EnableMFADeviceRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = EnableMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void EnableMFADevice_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("EnableMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new EnableMFADeviceRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = EnableMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void EnableMFADevice_EntityTemporarilyUnmodifiableExceptionMarshallTest() { var operation = service_model.FindOperation("EnableMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new EnableMFADeviceRequestMarshaller(); 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("EntityTemporarilyUnmodifiableException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = EnableMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void EnableMFADevice_InvalidAuthenticationCodeExceptionMarshallTest() { var operation = service_model.FindOperation("EnableMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new EnableMFADeviceRequestMarshaller(); 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("InvalidAuthenticationCodeException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = EnableMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void EnableMFADevice_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("EnableMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new EnableMFADeviceRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = EnableMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void EnableMFADevice_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("EnableMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new EnableMFADeviceRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = EnableMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void EnableMFADevice_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("EnableMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new EnableMFADeviceRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = EnableMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GenerateCredentialReportMarshallTest() { var operation = service_model.FindOperation("GenerateCredentialReport"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GenerateCredentialReportRequestMarshaller(); 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 = GenerateCredentialReportResponseUnmarshaller.Instance.Unmarshall(context) as GenerateCredentialReportResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GenerateCredentialReport_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("GenerateCredentialReport"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GenerateCredentialReportRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GenerateCredentialReportResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GenerateCredentialReport_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GenerateCredentialReport"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GenerateCredentialReportRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GenerateCredentialReportResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GenerateOrganizationsAccessReportMarshallTest() { var operation = service_model.FindOperation("GenerateOrganizationsAccessReport"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GenerateOrganizationsAccessReportRequestMarshaller(); 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 = GenerateOrganizationsAccessReportResponseUnmarshaller.Instance.Unmarshall(context) as GenerateOrganizationsAccessReportResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GenerateOrganizationsAccessReport_ReportGenerationLimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("GenerateOrganizationsAccessReport"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GenerateOrganizationsAccessReportRequestMarshaller(); 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("ReportGenerationLimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GenerateOrganizationsAccessReportResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GenerateServiceLastAccessedDetailsMarshallTest() { var operation = service_model.FindOperation("GenerateServiceLastAccessedDetails"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GenerateServiceLastAccessedDetailsRequestMarshaller(); 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 = GenerateServiceLastAccessedDetailsResponseUnmarshaller.Instance.Unmarshall(context) as GenerateServiceLastAccessedDetailsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GenerateServiceLastAccessedDetails_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("GenerateServiceLastAccessedDetails"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GenerateServiceLastAccessedDetailsRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GenerateServiceLastAccessedDetailsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GenerateServiceLastAccessedDetails_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GenerateServiceLastAccessedDetails"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GenerateServiceLastAccessedDetailsRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GenerateServiceLastAccessedDetailsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetAccessKeyLastUsedMarshallTest() { var operation = service_model.FindOperation("GetAccessKeyLastUsed"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetAccessKeyLastUsedRequestMarshaller(); 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 = GetAccessKeyLastUsedResponseUnmarshaller.Instance.Unmarshall(context) as GetAccessKeyLastUsedResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetAccessKeyLastUsed_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetAccessKeyLastUsed"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetAccessKeyLastUsedRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetAccessKeyLastUsedResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetAccountAuthorizationDetailsMarshallTest() { var operation = service_model.FindOperation("GetAccountAuthorizationDetails"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetAccountAuthorizationDetailsRequestMarshaller(); 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 = GetAccountAuthorizationDetailsResponseUnmarshaller.Instance.Unmarshall(context) as GetAccountAuthorizationDetailsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetAccountAuthorizationDetails_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetAccountAuthorizationDetails"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetAccountAuthorizationDetailsRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetAccountAuthorizationDetailsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetAccountPasswordPolicyMarshallTest() { var operation = service_model.FindOperation("GetAccountPasswordPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetAccountPasswordPolicyRequestMarshaller(); 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 = GetAccountPasswordPolicyResponseUnmarshaller.Instance.Unmarshall(context) as GetAccountPasswordPolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetAccountPasswordPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetAccountPasswordPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetAccountPasswordPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetAccountPasswordPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetAccountPasswordPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetAccountPasswordPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetAccountPasswordPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetAccountPasswordPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetAccountSummaryMarshallTest() { var operation = service_model.FindOperation("GetAccountSummary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetAccountSummaryRequestMarshaller(); 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 = GetAccountSummaryResponseUnmarshaller.Instance.Unmarshall(context) as GetAccountSummaryResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetAccountSummary_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetAccountSummary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetAccountSummaryRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetAccountSummaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetContextKeysForCustomPolicyMarshallTest() { var operation = service_model.FindOperation("GetContextKeysForCustomPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetContextKeysForCustomPolicyRequestMarshaller(); 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 = GetContextKeysForCustomPolicyResponseUnmarshaller.Instance.Unmarshall(context) as GetContextKeysForCustomPolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetContextKeysForCustomPolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("GetContextKeysForCustomPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetContextKeysForCustomPolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetContextKeysForCustomPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetContextKeysForPrincipalPolicyMarshallTest() { var operation = service_model.FindOperation("GetContextKeysForPrincipalPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetContextKeysForPrincipalPolicyRequestMarshaller(); 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 = GetContextKeysForPrincipalPolicyResponseUnmarshaller.Instance.Unmarshall(context) as GetContextKeysForPrincipalPolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetContextKeysForPrincipalPolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("GetContextKeysForPrincipalPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetContextKeysForPrincipalPolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetContextKeysForPrincipalPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetContextKeysForPrincipalPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetContextKeysForPrincipalPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetContextKeysForPrincipalPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetContextKeysForPrincipalPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetCredentialReportMarshallTest() { var operation = service_model.FindOperation("GetCredentialReport"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetCredentialReportRequestMarshaller(); 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 = GetCredentialReportResponseUnmarshaller.Instance.Unmarshall(context) as GetCredentialReportResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetCredentialReport_CredentialReportExpiredExceptionMarshallTest() { var operation = service_model.FindOperation("GetCredentialReport"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetCredentialReportRequestMarshaller(); 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("CredentialReportExpiredException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetCredentialReportResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetCredentialReport_CredentialReportNotPresentExceptionMarshallTest() { var operation = service_model.FindOperation("GetCredentialReport"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetCredentialReportRequestMarshaller(); 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("CredentialReportNotPresentException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetCredentialReportResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetCredentialReport_CredentialReportNotReadyExceptionMarshallTest() { var operation = service_model.FindOperation("GetCredentialReport"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetCredentialReportRequestMarshaller(); 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("CredentialReportNotReadyException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetCredentialReportResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetCredentialReport_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetCredentialReport"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetCredentialReportRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetCredentialReportResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetGroupMarshallTest() { var operation = service_model.FindOperation("GetGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetGroupRequestMarshaller(); 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 = GetGroupResponseUnmarshaller.Instance.Unmarshall(context) as GetGroupResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetGroup_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetGroupRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetGroup_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetGroupRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetGroupPolicyMarshallTest() { var operation = service_model.FindOperation("GetGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetGroupPolicyRequestMarshaller(); 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 = GetGroupPolicyResponseUnmarshaller.Instance.Unmarshall(context) as GetGroupPolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetGroupPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetGroupPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetGroupPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetGroupPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetInstanceProfileMarshallTest() { var operation = service_model.FindOperation("GetInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetInstanceProfileRequestMarshaller(); 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 = GetInstanceProfileResponseUnmarshaller.Instance.Unmarshall(context) as GetInstanceProfileResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetInstanceProfile_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetInstanceProfileRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetInstanceProfile_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetInstanceProfileRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetLoginProfileMarshallTest() { var operation = service_model.FindOperation("GetLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetLoginProfileRequestMarshaller(); 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 = GetLoginProfileResponseUnmarshaller.Instance.Unmarshall(context) as GetLoginProfileResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetLoginProfile_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetLoginProfileRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetLoginProfile_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetLoginProfileRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetMFADeviceMarshallTest() { var operation = service_model.FindOperation("GetMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetMFADeviceRequestMarshaller(); 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 = GetMFADeviceResponseUnmarshaller.Instance.Unmarshall(context) as GetMFADeviceResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetMFADevice_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetMFADeviceRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetMFADevice_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetMFADeviceRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetOpenIDConnectProviderMarshallTest() { var operation = service_model.FindOperation("GetOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetOpenIDConnectProviderRequestMarshaller(); 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 = GetOpenIDConnectProviderResponseUnmarshaller.Instance.Unmarshall(context) as GetOpenIDConnectProviderResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetOpenIDConnectProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("GetOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetOpenIDConnectProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetOpenIDConnectProvider_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetOpenIDConnectProviderRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetOpenIDConnectProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetOpenIDConnectProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetOrganizationsAccessReportMarshallTest() { var operation = service_model.FindOperation("GetOrganizationsAccessReport"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetOrganizationsAccessReportRequestMarshaller(); 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 = GetOrganizationsAccessReportResponseUnmarshaller.Instance.Unmarshall(context) as GetOrganizationsAccessReportResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetOrganizationsAccessReport_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetOrganizationsAccessReport"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetOrganizationsAccessReportRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetOrganizationsAccessReportResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetPolicyMarshallTest() { var operation = service_model.FindOperation("GetPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetPolicyRequestMarshaller(); 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 = GetPolicyResponseUnmarshaller.Instance.Unmarshall(context) as GetPolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetPolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("GetPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetPolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetPolicyVersionMarshallTest() { var operation = service_model.FindOperation("GetPolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetPolicyVersionRequestMarshaller(); 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 = GetPolicyVersionResponseUnmarshaller.Instance.Unmarshall(context) as GetPolicyVersionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetPolicyVersion_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("GetPolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetPolicyVersionRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetPolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetPolicyVersion_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetPolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetPolicyVersionRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetPolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetPolicyVersion_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetPolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetPolicyVersionRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetPolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetRoleMarshallTest() { var operation = service_model.FindOperation("GetRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetRoleRequestMarshaller(); 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 = GetRoleResponseUnmarshaller.Instance.Unmarshall(context) as GetRoleResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetRole_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetRoleRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetRole_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetRoleRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetRolePolicyMarshallTest() { var operation = service_model.FindOperation("GetRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetRolePolicyRequestMarshaller(); 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 = GetRolePolicyResponseUnmarshaller.Instance.Unmarshall(context) as GetRolePolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetRolePolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetRolePolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetRolePolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetRolePolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetSAMLProviderMarshallTest() { var operation = service_model.FindOperation("GetSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetSAMLProviderRequestMarshaller(); 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 = GetSAMLProviderResponseUnmarshaller.Instance.Unmarshall(context) as GetSAMLProviderResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetSAMLProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("GetSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetSAMLProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetSAMLProvider_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetSAMLProviderRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetSAMLProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetSAMLProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServerCertificateMarshallTest() { var operation = service_model.FindOperation("GetServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServerCertificateRequestMarshaller(); 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 = GetServerCertificateResponseUnmarshaller.Instance.Unmarshall(context) as GetServerCertificateResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServerCertificate_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServerCertificateRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServerCertificate_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServerCertificateRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServiceLastAccessedDetailsMarshallTest() { var operation = service_model.FindOperation("GetServiceLastAccessedDetails"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServiceLastAccessedDetailsRequestMarshaller(); 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 = GetServiceLastAccessedDetailsResponseUnmarshaller.Instance.Unmarshall(context) as GetServiceLastAccessedDetailsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServiceLastAccessedDetails_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("GetServiceLastAccessedDetails"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServiceLastAccessedDetailsRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetServiceLastAccessedDetailsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServiceLastAccessedDetails_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetServiceLastAccessedDetails"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServiceLastAccessedDetailsRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetServiceLastAccessedDetailsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServiceLastAccessedDetailsWithEntitiesMarshallTest() { var operation = service_model.FindOperation("GetServiceLastAccessedDetailsWithEntities"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServiceLastAccessedDetailsWithEntitiesRequestMarshaller(); 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 = GetServiceLastAccessedDetailsWithEntitiesResponseUnmarshaller.Instance.Unmarshall(context) as GetServiceLastAccessedDetailsWithEntitiesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServiceLastAccessedDetailsWithEntities_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("GetServiceLastAccessedDetailsWithEntities"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServiceLastAccessedDetailsWithEntitiesRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetServiceLastAccessedDetailsWithEntitiesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServiceLastAccessedDetailsWithEntities_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetServiceLastAccessedDetailsWithEntities"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServiceLastAccessedDetailsWithEntitiesRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetServiceLastAccessedDetailsWithEntitiesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServiceLinkedRoleDeletionStatusMarshallTest() { var operation = service_model.FindOperation("GetServiceLinkedRoleDeletionStatus"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServiceLinkedRoleDeletionStatusRequestMarshaller(); 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 = GetServiceLinkedRoleDeletionStatusResponseUnmarshaller.Instance.Unmarshall(context) as GetServiceLinkedRoleDeletionStatusResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServiceLinkedRoleDeletionStatus_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("GetServiceLinkedRoleDeletionStatus"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServiceLinkedRoleDeletionStatusRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetServiceLinkedRoleDeletionStatusResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServiceLinkedRoleDeletionStatus_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetServiceLinkedRoleDeletionStatus"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServiceLinkedRoleDeletionStatusRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetServiceLinkedRoleDeletionStatusResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetServiceLinkedRoleDeletionStatus_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetServiceLinkedRoleDeletionStatus"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetServiceLinkedRoleDeletionStatusRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetServiceLinkedRoleDeletionStatusResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetSSHPublicKeyMarshallTest() { var operation = service_model.FindOperation("GetSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetSSHPublicKeyRequestMarshaller(); 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 = GetSSHPublicKeyResponseUnmarshaller.Instance.Unmarshall(context) as GetSSHPublicKeyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetSSHPublicKey_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetSSHPublicKeyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetSSHPublicKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetSSHPublicKey_UnrecognizedPublicKeyEncodingExceptionMarshallTest() { var operation = service_model.FindOperation("GetSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetSSHPublicKeyRequestMarshaller(); 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("UnrecognizedPublicKeyEncodingException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetSSHPublicKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetUserMarshallTest() { var operation = service_model.FindOperation("GetUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetUserRequestMarshaller(); 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 = GetUserResponseUnmarshaller.Instance.Unmarshall(context) as GetUserResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetUser_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetUserRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetUser_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetUserRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetUserPolicyMarshallTest() { var operation = service_model.FindOperation("GetUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetUserPolicyRequestMarshaller(); 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 = GetUserPolicyResponseUnmarshaller.Instance.Unmarshall(context) as GetUserPolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetUserPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("GetUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetUserPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void GetUserPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("GetUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new GetUserPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = GetUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAccessKeysMarshallTest() { var operation = service_model.FindOperation("ListAccessKeys"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAccessKeysRequestMarshaller(); 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 = ListAccessKeysResponseUnmarshaller.Instance.Unmarshall(context) as ListAccessKeysResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAccessKeys_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListAccessKeys"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAccessKeysRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListAccessKeysResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAccessKeys_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListAccessKeys"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAccessKeysRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListAccessKeysResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAccountAliasesMarshallTest() { var operation = service_model.FindOperation("ListAccountAliases"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAccountAliasesRequestMarshaller(); 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 = ListAccountAliasesResponseUnmarshaller.Instance.Unmarshall(context) as ListAccountAliasesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAccountAliases_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListAccountAliases"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAccountAliasesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListAccountAliasesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAttachedGroupPoliciesMarshallTest() { var operation = service_model.FindOperation("ListAttachedGroupPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAttachedGroupPoliciesRequestMarshaller(); 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 = ListAttachedGroupPoliciesResponseUnmarshaller.Instance.Unmarshall(context) as ListAttachedGroupPoliciesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAttachedGroupPolicies_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("ListAttachedGroupPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAttachedGroupPoliciesRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListAttachedGroupPoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAttachedGroupPolicies_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListAttachedGroupPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAttachedGroupPoliciesRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListAttachedGroupPoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAttachedGroupPolicies_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListAttachedGroupPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAttachedGroupPoliciesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListAttachedGroupPoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAttachedRolePoliciesMarshallTest() { var operation = service_model.FindOperation("ListAttachedRolePolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAttachedRolePoliciesRequestMarshaller(); 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 = ListAttachedRolePoliciesResponseUnmarshaller.Instance.Unmarshall(context) as ListAttachedRolePoliciesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAttachedRolePolicies_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("ListAttachedRolePolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAttachedRolePoliciesRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListAttachedRolePoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAttachedRolePolicies_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListAttachedRolePolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAttachedRolePoliciesRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListAttachedRolePoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAttachedRolePolicies_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListAttachedRolePolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAttachedRolePoliciesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListAttachedRolePoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAttachedUserPoliciesMarshallTest() { var operation = service_model.FindOperation("ListAttachedUserPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAttachedUserPoliciesRequestMarshaller(); 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 = ListAttachedUserPoliciesResponseUnmarshaller.Instance.Unmarshall(context) as ListAttachedUserPoliciesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAttachedUserPolicies_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("ListAttachedUserPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAttachedUserPoliciesRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListAttachedUserPoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAttachedUserPolicies_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListAttachedUserPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAttachedUserPoliciesRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListAttachedUserPoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListAttachedUserPolicies_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListAttachedUserPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListAttachedUserPoliciesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListAttachedUserPoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListEntitiesForPolicyMarshallTest() { var operation = service_model.FindOperation("ListEntitiesForPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListEntitiesForPolicyRequestMarshaller(); 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 = ListEntitiesForPolicyResponseUnmarshaller.Instance.Unmarshall(context) as ListEntitiesForPolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListEntitiesForPolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("ListEntitiesForPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListEntitiesForPolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListEntitiesForPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListEntitiesForPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListEntitiesForPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListEntitiesForPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListEntitiesForPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListEntitiesForPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListEntitiesForPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListEntitiesForPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListEntitiesForPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListGroupPoliciesMarshallTest() { var operation = service_model.FindOperation("ListGroupPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListGroupPoliciesRequestMarshaller(); 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 = ListGroupPoliciesResponseUnmarshaller.Instance.Unmarshall(context) as ListGroupPoliciesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListGroupPolicies_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListGroupPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListGroupPoliciesRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListGroupPoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListGroupPolicies_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListGroupPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListGroupPoliciesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListGroupPoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListGroupsMarshallTest() { var operation = service_model.FindOperation("ListGroups"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListGroupsRequestMarshaller(); 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 = ListGroupsResponseUnmarshaller.Instance.Unmarshall(context) as ListGroupsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListGroups_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListGroups"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListGroupsRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListGroupsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListGroupsForUserMarshallTest() { var operation = service_model.FindOperation("ListGroupsForUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListGroupsForUserRequestMarshaller(); 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 = ListGroupsForUserResponseUnmarshaller.Instance.Unmarshall(context) as ListGroupsForUserResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListGroupsForUser_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListGroupsForUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListGroupsForUserRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListGroupsForUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListGroupsForUser_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListGroupsForUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListGroupsForUserRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListGroupsForUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListInstanceProfilesMarshallTest() { var operation = service_model.FindOperation("ListInstanceProfiles"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListInstanceProfilesRequestMarshaller(); 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 = ListInstanceProfilesResponseUnmarshaller.Instance.Unmarshall(context) as ListInstanceProfilesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListInstanceProfiles_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListInstanceProfiles"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListInstanceProfilesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListInstanceProfilesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListInstanceProfilesForRoleMarshallTest() { var operation = service_model.FindOperation("ListInstanceProfilesForRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListInstanceProfilesForRoleRequestMarshaller(); 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 = ListInstanceProfilesForRoleResponseUnmarshaller.Instance.Unmarshall(context) as ListInstanceProfilesForRoleResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListInstanceProfilesForRole_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListInstanceProfilesForRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListInstanceProfilesForRoleRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListInstanceProfilesForRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListInstanceProfilesForRole_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListInstanceProfilesForRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListInstanceProfilesForRoleRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListInstanceProfilesForRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListInstanceProfileTagsMarshallTest() { var operation = service_model.FindOperation("ListInstanceProfileTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListInstanceProfileTagsRequestMarshaller(); 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 = ListInstanceProfileTagsResponseUnmarshaller.Instance.Unmarshall(context) as ListInstanceProfileTagsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListInstanceProfileTags_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListInstanceProfileTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListInstanceProfileTagsRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListInstanceProfileTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListInstanceProfileTags_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListInstanceProfileTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListInstanceProfileTagsRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListInstanceProfileTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListMFADevicesMarshallTest() { var operation = service_model.FindOperation("ListMFADevices"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListMFADevicesRequestMarshaller(); 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 = ListMFADevicesResponseUnmarshaller.Instance.Unmarshall(context) as ListMFADevicesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListMFADevices_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListMFADevices"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListMFADevicesRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListMFADevicesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListMFADevices_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListMFADevices"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListMFADevicesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListMFADevicesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListMFADeviceTagsMarshallTest() { var operation = service_model.FindOperation("ListMFADeviceTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListMFADeviceTagsRequestMarshaller(); 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 = ListMFADeviceTagsResponseUnmarshaller.Instance.Unmarshall(context) as ListMFADeviceTagsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListMFADeviceTags_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("ListMFADeviceTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListMFADeviceTagsRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListMFADeviceTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListMFADeviceTags_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListMFADeviceTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListMFADeviceTagsRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListMFADeviceTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListMFADeviceTags_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListMFADeviceTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListMFADeviceTagsRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListMFADeviceTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListOpenIDConnectProvidersMarshallTest() { var operation = service_model.FindOperation("ListOpenIDConnectProviders"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListOpenIDConnectProvidersRequestMarshaller(); 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 = ListOpenIDConnectProvidersResponseUnmarshaller.Instance.Unmarshall(context) as ListOpenIDConnectProvidersResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListOpenIDConnectProviders_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListOpenIDConnectProviders"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListOpenIDConnectProvidersRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListOpenIDConnectProvidersResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListOpenIDConnectProviderTagsMarshallTest() { var operation = service_model.FindOperation("ListOpenIDConnectProviderTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListOpenIDConnectProviderTagsRequestMarshaller(); 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 = ListOpenIDConnectProviderTagsResponseUnmarshaller.Instance.Unmarshall(context) as ListOpenIDConnectProviderTagsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListOpenIDConnectProviderTags_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("ListOpenIDConnectProviderTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListOpenIDConnectProviderTagsRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListOpenIDConnectProviderTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListOpenIDConnectProviderTags_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListOpenIDConnectProviderTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListOpenIDConnectProviderTagsRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListOpenIDConnectProviderTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListOpenIDConnectProviderTags_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListOpenIDConnectProviderTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListOpenIDConnectProviderTagsRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListOpenIDConnectProviderTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPoliciesMarshallTest() { var operation = service_model.FindOperation("ListPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPoliciesRequestMarshaller(); 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 = ListPoliciesResponseUnmarshaller.Instance.Unmarshall(context) as ListPoliciesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPolicies_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPoliciesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListPoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPoliciesGrantingServiceAccessMarshallTest() { var operation = service_model.FindOperation("ListPoliciesGrantingServiceAccess"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPoliciesGrantingServiceAccessRequestMarshaller(); 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 = ListPoliciesGrantingServiceAccessResponseUnmarshaller.Instance.Unmarshall(context) as ListPoliciesGrantingServiceAccessResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPoliciesGrantingServiceAccess_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("ListPoliciesGrantingServiceAccess"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPoliciesGrantingServiceAccessRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListPoliciesGrantingServiceAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPoliciesGrantingServiceAccess_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListPoliciesGrantingServiceAccess"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPoliciesGrantingServiceAccessRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListPoliciesGrantingServiceAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPolicyTagsMarshallTest() { var operation = service_model.FindOperation("ListPolicyTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPolicyTagsRequestMarshaller(); 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 = ListPolicyTagsResponseUnmarshaller.Instance.Unmarshall(context) as ListPolicyTagsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPolicyTags_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("ListPolicyTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPolicyTagsRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListPolicyTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPolicyTags_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListPolicyTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPolicyTagsRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListPolicyTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPolicyTags_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListPolicyTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPolicyTagsRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListPolicyTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPolicyVersionsMarshallTest() { var operation = service_model.FindOperation("ListPolicyVersions"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPolicyVersionsRequestMarshaller(); 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 = ListPolicyVersionsResponseUnmarshaller.Instance.Unmarshall(context) as ListPolicyVersionsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPolicyVersions_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("ListPolicyVersions"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPolicyVersionsRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListPolicyVersionsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPolicyVersions_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListPolicyVersions"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPolicyVersionsRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListPolicyVersionsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListPolicyVersions_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListPolicyVersions"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListPolicyVersionsRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListPolicyVersionsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListRolePoliciesMarshallTest() { var operation = service_model.FindOperation("ListRolePolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListRolePoliciesRequestMarshaller(); 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 = ListRolePoliciesResponseUnmarshaller.Instance.Unmarshall(context) as ListRolePoliciesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListRolePolicies_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListRolePolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListRolePoliciesRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListRolePoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListRolePolicies_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListRolePolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListRolePoliciesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListRolePoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListRolesMarshallTest() { var operation = service_model.FindOperation("ListRoles"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListRolesRequestMarshaller(); 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 = ListRolesResponseUnmarshaller.Instance.Unmarshall(context) as ListRolesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListRoles_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListRoles"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListRolesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListRolesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListRoleTagsMarshallTest() { var operation = service_model.FindOperation("ListRoleTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListRoleTagsRequestMarshaller(); 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 = ListRoleTagsResponseUnmarshaller.Instance.Unmarshall(context) as ListRoleTagsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListRoleTags_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListRoleTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListRoleTagsRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListRoleTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListRoleTags_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListRoleTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListRoleTagsRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListRoleTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListSAMLProvidersMarshallTest() { var operation = service_model.FindOperation("ListSAMLProviders"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListSAMLProvidersRequestMarshaller(); 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 = ListSAMLProvidersResponseUnmarshaller.Instance.Unmarshall(context) as ListSAMLProvidersResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListSAMLProviders_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListSAMLProviders"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListSAMLProvidersRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListSAMLProvidersResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListSAMLProviderTagsMarshallTest() { var operation = service_model.FindOperation("ListSAMLProviderTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListSAMLProviderTagsRequestMarshaller(); 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 = ListSAMLProviderTagsResponseUnmarshaller.Instance.Unmarshall(context) as ListSAMLProviderTagsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListSAMLProviderTags_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("ListSAMLProviderTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListSAMLProviderTagsRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListSAMLProviderTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListSAMLProviderTags_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListSAMLProviderTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListSAMLProviderTagsRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListSAMLProviderTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListSAMLProviderTags_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListSAMLProviderTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListSAMLProviderTagsRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListSAMLProviderTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListServerCertificatesMarshallTest() { var operation = service_model.FindOperation("ListServerCertificates"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListServerCertificatesRequestMarshaller(); 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 = ListServerCertificatesResponseUnmarshaller.Instance.Unmarshall(context) as ListServerCertificatesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListServerCertificates_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListServerCertificates"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListServerCertificatesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListServerCertificatesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListServerCertificateTagsMarshallTest() { var operation = service_model.FindOperation("ListServerCertificateTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListServerCertificateTagsRequestMarshaller(); 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 = ListServerCertificateTagsResponseUnmarshaller.Instance.Unmarshall(context) as ListServerCertificateTagsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListServerCertificateTags_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListServerCertificateTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListServerCertificateTagsRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListServerCertificateTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListServerCertificateTags_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListServerCertificateTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListServerCertificateTagsRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListServerCertificateTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListServiceSpecificCredentialsMarshallTest() { var operation = service_model.FindOperation("ListServiceSpecificCredentials"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListServiceSpecificCredentialsRequestMarshaller(); 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 = ListServiceSpecificCredentialsResponseUnmarshaller.Instance.Unmarshall(context) as ListServiceSpecificCredentialsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListServiceSpecificCredentials_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListServiceSpecificCredentials"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListServiceSpecificCredentialsRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListServiceSpecificCredentialsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListServiceSpecificCredentials_ServiceNotSupportedExceptionMarshallTest() { var operation = service_model.FindOperation("ListServiceSpecificCredentials"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListServiceSpecificCredentialsRequestMarshaller(); 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("ServiceNotSupportedException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListServiceSpecificCredentialsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListSigningCertificatesMarshallTest() { var operation = service_model.FindOperation("ListSigningCertificates"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListSigningCertificatesRequestMarshaller(); 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 = ListSigningCertificatesResponseUnmarshaller.Instance.Unmarshall(context) as ListSigningCertificatesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListSigningCertificates_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListSigningCertificates"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListSigningCertificatesRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListSigningCertificatesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListSigningCertificates_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListSigningCertificates"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListSigningCertificatesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListSigningCertificatesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListSSHPublicKeysMarshallTest() { var operation = service_model.FindOperation("ListSSHPublicKeys"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListSSHPublicKeysRequestMarshaller(); 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 = ListSSHPublicKeysResponseUnmarshaller.Instance.Unmarshall(context) as ListSSHPublicKeysResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListSSHPublicKeys_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListSSHPublicKeys"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListSSHPublicKeysRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListSSHPublicKeysResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListUserPoliciesMarshallTest() { var operation = service_model.FindOperation("ListUserPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListUserPoliciesRequestMarshaller(); 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 = ListUserPoliciesResponseUnmarshaller.Instance.Unmarshall(context) as ListUserPoliciesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListUserPolicies_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListUserPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListUserPoliciesRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListUserPoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListUserPolicies_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListUserPolicies"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListUserPoliciesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListUserPoliciesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListUsersMarshallTest() { var operation = service_model.FindOperation("ListUsers"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListUsersRequestMarshaller(); 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 = ListUsersResponseUnmarshaller.Instance.Unmarshall(context) as ListUsersResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListUsers_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListUsers"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListUsersRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListUsersResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListUserTagsMarshallTest() { var operation = service_model.FindOperation("ListUserTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListUserTagsRequestMarshaller(); 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 = ListUserTagsResponseUnmarshaller.Instance.Unmarshall(context) as ListUserTagsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListUserTags_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ListUserTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListUserTagsRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListUserTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListUserTags_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ListUserTags"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListUserTagsRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ListUserTagsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ListVirtualMFADevicesMarshallTest() { var operation = service_model.FindOperation("ListVirtualMFADevices"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ListVirtualMFADevicesRequestMarshaller(); 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 = ListVirtualMFADevicesResponseUnmarshaller.Instance.Unmarshall(context) as ListVirtualMFADevicesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutGroupPolicyMarshallTest() { var operation = service_model.FindOperation("PutGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutGroupPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutGroupPolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("PutGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutGroupPolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutGroupPolicy_MalformedPolicyDocumentExceptionMarshallTest() { var operation = service_model.FindOperation("PutGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutGroupPolicyRequestMarshaller(); 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("MalformedPolicyDocumentException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutGroupPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("PutGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutGroupPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutGroupPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("PutGroupPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutGroupPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutGroupPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutRolePermissionsBoundaryMarshallTest() { var operation = service_model.FindOperation("PutRolePermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutRolePermissionsBoundaryRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutRolePermissionsBoundary_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("PutRolePermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutRolePermissionsBoundaryRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutRolePermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutRolePermissionsBoundary_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("PutRolePermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutRolePermissionsBoundaryRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutRolePermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutRolePermissionsBoundary_PolicyNotAttachableExceptionMarshallTest() { var operation = service_model.FindOperation("PutRolePermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutRolePermissionsBoundaryRequestMarshaller(); 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("PolicyNotAttachableException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutRolePermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutRolePermissionsBoundary_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("PutRolePermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutRolePermissionsBoundaryRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutRolePermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutRolePermissionsBoundary_UnmodifiableEntityExceptionMarshallTest() { var operation = service_model.FindOperation("PutRolePermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutRolePermissionsBoundaryRequestMarshaller(); 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("UnmodifiableEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutRolePermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutRolePolicyMarshallTest() { var operation = service_model.FindOperation("PutRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutRolePolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutRolePolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("PutRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutRolePolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutRolePolicy_MalformedPolicyDocumentExceptionMarshallTest() { var operation = service_model.FindOperation("PutRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutRolePolicyRequestMarshaller(); 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("MalformedPolicyDocumentException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutRolePolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("PutRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutRolePolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutRolePolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("PutRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutRolePolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutRolePolicy_UnmodifiableEntityExceptionMarshallTest() { var operation = service_model.FindOperation("PutRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutRolePolicyRequestMarshaller(); 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("UnmodifiableEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutUserPermissionsBoundaryMarshallTest() { var operation = service_model.FindOperation("PutUserPermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutUserPermissionsBoundaryRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutUserPermissionsBoundary_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("PutUserPermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutUserPermissionsBoundaryRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutUserPermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutUserPermissionsBoundary_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("PutUserPermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutUserPermissionsBoundaryRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutUserPermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutUserPermissionsBoundary_PolicyNotAttachableExceptionMarshallTest() { var operation = service_model.FindOperation("PutUserPermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutUserPermissionsBoundaryRequestMarshaller(); 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("PolicyNotAttachableException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutUserPermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutUserPermissionsBoundary_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("PutUserPermissionsBoundary"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutUserPermissionsBoundaryRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutUserPermissionsBoundaryResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutUserPolicyMarshallTest() { var operation = service_model.FindOperation("PutUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutUserPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutUserPolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("PutUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutUserPolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutUserPolicy_MalformedPolicyDocumentExceptionMarshallTest() { var operation = service_model.FindOperation("PutUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutUserPolicyRequestMarshaller(); 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("MalformedPolicyDocumentException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutUserPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("PutUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutUserPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void PutUserPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("PutUserPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new PutUserPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = PutUserPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveClientIDFromOpenIDConnectProviderMarshallTest() { var operation = service_model.FindOperation("RemoveClientIDFromOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveClientIDFromOpenIDConnectProviderRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveClientIDFromOpenIDConnectProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("RemoveClientIDFromOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveClientIDFromOpenIDConnectProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = RemoveClientIDFromOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveClientIDFromOpenIDConnectProvider_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("RemoveClientIDFromOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveClientIDFromOpenIDConnectProviderRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = RemoveClientIDFromOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveClientIDFromOpenIDConnectProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("RemoveClientIDFromOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveClientIDFromOpenIDConnectProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = RemoveClientIDFromOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveRoleFromInstanceProfileMarshallTest() { var operation = service_model.FindOperation("RemoveRoleFromInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveRoleFromInstanceProfileRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveRoleFromInstanceProfile_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("RemoveRoleFromInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveRoleFromInstanceProfileRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = RemoveRoleFromInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveRoleFromInstanceProfile_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("RemoveRoleFromInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveRoleFromInstanceProfileRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = RemoveRoleFromInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveRoleFromInstanceProfile_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("RemoveRoleFromInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveRoleFromInstanceProfileRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = RemoveRoleFromInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveRoleFromInstanceProfile_UnmodifiableEntityExceptionMarshallTest() { var operation = service_model.FindOperation("RemoveRoleFromInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveRoleFromInstanceProfileRequestMarshaller(); 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("UnmodifiableEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = RemoveRoleFromInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveUserFromGroupMarshallTest() { var operation = service_model.FindOperation("RemoveUserFromGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveUserFromGroupRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveUserFromGroup_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("RemoveUserFromGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveUserFromGroupRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = RemoveUserFromGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveUserFromGroup_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("RemoveUserFromGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveUserFromGroupRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = RemoveUserFromGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void RemoveUserFromGroup_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("RemoveUserFromGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new RemoveUserFromGroupRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = RemoveUserFromGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ResetServiceSpecificCredentialMarshallTest() { var operation = service_model.FindOperation("ResetServiceSpecificCredential"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ResetServiceSpecificCredentialRequestMarshaller(); 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 = ResetServiceSpecificCredentialResponseUnmarshaller.Instance.Unmarshall(context) as ResetServiceSpecificCredentialResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ResetServiceSpecificCredential_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ResetServiceSpecificCredential"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ResetServiceSpecificCredentialRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ResetServiceSpecificCredentialResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ResyncMFADeviceMarshallTest() { var operation = service_model.FindOperation("ResyncMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ResyncMFADeviceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ResyncMFADevice_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("ResyncMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ResyncMFADeviceRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ResyncMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ResyncMFADevice_InvalidAuthenticationCodeExceptionMarshallTest() { var operation = service_model.FindOperation("ResyncMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ResyncMFADeviceRequestMarshaller(); 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("InvalidAuthenticationCodeException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ResyncMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ResyncMFADevice_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("ResyncMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ResyncMFADeviceRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ResyncMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ResyncMFADevice_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("ResyncMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ResyncMFADeviceRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ResyncMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void ResyncMFADevice_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("ResyncMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new ResyncMFADeviceRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = ResyncMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SetDefaultPolicyVersionMarshallTest() { var operation = service_model.FindOperation("SetDefaultPolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SetDefaultPolicyVersionRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SetDefaultPolicyVersion_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("SetDefaultPolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SetDefaultPolicyVersionRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = SetDefaultPolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SetDefaultPolicyVersion_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("SetDefaultPolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SetDefaultPolicyVersionRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = SetDefaultPolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SetDefaultPolicyVersion_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("SetDefaultPolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SetDefaultPolicyVersionRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = SetDefaultPolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SetDefaultPolicyVersion_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("SetDefaultPolicyVersion"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SetDefaultPolicyVersionRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = SetDefaultPolicyVersionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SetSecurityTokenServicePreferencesMarshallTest() { var operation = service_model.FindOperation("SetSecurityTokenServicePreferences"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SetSecurityTokenServicePreferencesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SetSecurityTokenServicePreferences_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("SetSecurityTokenServicePreferences"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SetSecurityTokenServicePreferencesRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = SetSecurityTokenServicePreferencesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SimulateCustomPolicyMarshallTest() { var operation = service_model.FindOperation("SimulateCustomPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SimulateCustomPolicyRequestMarshaller(); 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 = SimulateCustomPolicyResponseUnmarshaller.Instance.Unmarshall(context) as SimulateCustomPolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SimulateCustomPolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("SimulateCustomPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SimulateCustomPolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = SimulateCustomPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SimulateCustomPolicy_PolicyEvaluationExceptionMarshallTest() { var operation = service_model.FindOperation("SimulateCustomPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SimulateCustomPolicyRequestMarshaller(); 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("PolicyEvaluationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = SimulateCustomPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SimulatePrincipalPolicyMarshallTest() { var operation = service_model.FindOperation("SimulatePrincipalPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SimulatePrincipalPolicyRequestMarshaller(); 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 = SimulatePrincipalPolicyResponseUnmarshaller.Instance.Unmarshall(context) as SimulatePrincipalPolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SimulatePrincipalPolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("SimulatePrincipalPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SimulatePrincipalPolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = SimulatePrincipalPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SimulatePrincipalPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("SimulatePrincipalPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SimulatePrincipalPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = SimulatePrincipalPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void SimulatePrincipalPolicy_PolicyEvaluationExceptionMarshallTest() { var operation = service_model.FindOperation("SimulatePrincipalPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new SimulatePrincipalPolicyRequestMarshaller(); 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("PolicyEvaluationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = SimulatePrincipalPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagInstanceProfileMarshallTest() { var operation = service_model.FindOperation("TagInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagInstanceProfileRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagInstanceProfile_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("TagInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagInstanceProfileRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagInstanceProfile_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("TagInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagInstanceProfileRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagInstanceProfile_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("TagInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagInstanceProfileRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagInstanceProfile_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("TagInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagInstanceProfileRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagInstanceProfile_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("TagInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagInstanceProfileRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagMFADeviceMarshallTest() { var operation = service_model.FindOperation("TagMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagMFADeviceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagMFADevice_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("TagMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagMFADeviceRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagMFADevice_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("TagMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagMFADeviceRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagMFADevice_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("TagMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagMFADeviceRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagMFADevice_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("TagMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagMFADeviceRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagMFADevice_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("TagMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagMFADeviceRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagOpenIDConnectProviderMarshallTest() { var operation = service_model.FindOperation("TagOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagOpenIDConnectProviderRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagOpenIDConnectProvider_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("TagOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagOpenIDConnectProviderRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagOpenIDConnectProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("TagOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagOpenIDConnectProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagOpenIDConnectProvider_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("TagOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagOpenIDConnectProviderRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagOpenIDConnectProvider_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("TagOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagOpenIDConnectProviderRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagOpenIDConnectProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("TagOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagOpenIDConnectProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagPolicyMarshallTest() { var operation = service_model.FindOperation("TagPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagPolicy_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("TagPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagPolicyRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagPolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("TagPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagPolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagPolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("TagPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagPolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("TagPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("TagPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagRoleMarshallTest() { var operation = service_model.FindOperation("TagRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagRoleRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagRole_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("TagRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagRoleRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagRole_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("TagRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagRoleRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagRole_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("TagRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagRoleRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagRole_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("TagRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagRoleRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagRole_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("TagRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagRoleRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagSAMLProviderMarshallTest() { var operation = service_model.FindOperation("TagSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagSAMLProviderRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagSAMLProvider_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("TagSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagSAMLProviderRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagSAMLProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("TagSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagSAMLProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagSAMLProvider_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("TagSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagSAMLProviderRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagSAMLProvider_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("TagSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagSAMLProviderRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagSAMLProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("TagSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagSAMLProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagServerCertificateMarshallTest() { var operation = service_model.FindOperation("TagServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagServerCertificateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagServerCertificate_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("TagServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagServerCertificateRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagServerCertificate_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("TagServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagServerCertificateRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagServerCertificate_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("TagServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagServerCertificateRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagServerCertificate_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("TagServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagServerCertificateRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagServerCertificate_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("TagServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagServerCertificateRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagUserMarshallTest() { var operation = service_model.FindOperation("TagUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagUserRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagUser_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("TagUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagUserRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagUser_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("TagUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagUserRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagUser_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("TagUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagUserRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagUser_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("TagUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagUserRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void TagUser_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("TagUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new TagUserRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = TagUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagInstanceProfileMarshallTest() { var operation = service_model.FindOperation("UntagInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagInstanceProfileRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagInstanceProfile_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("UntagInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagInstanceProfileRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagInstanceProfile_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("UntagInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagInstanceProfileRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagInstanceProfile_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UntagInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagInstanceProfileRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagInstanceProfile_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UntagInstanceProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagInstanceProfileRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagInstanceProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagMFADeviceMarshallTest() { var operation = service_model.FindOperation("UntagMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagMFADeviceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagMFADevice_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("UntagMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagMFADeviceRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagMFADevice_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("UntagMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagMFADeviceRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagMFADevice_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UntagMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagMFADeviceRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagMFADevice_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UntagMFADevice"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagMFADeviceRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagMFADeviceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagOpenIDConnectProviderMarshallTest() { var operation = service_model.FindOperation("UntagOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagOpenIDConnectProviderRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagOpenIDConnectProvider_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("UntagOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagOpenIDConnectProviderRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagOpenIDConnectProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("UntagOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagOpenIDConnectProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagOpenIDConnectProvider_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UntagOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagOpenIDConnectProviderRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagOpenIDConnectProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UntagOpenIDConnectProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagOpenIDConnectProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagOpenIDConnectProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagPolicyMarshallTest() { var operation = service_model.FindOperation("UntagPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagPolicy_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("UntagPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagPolicyRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagPolicy_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("UntagPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagPolicyRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UntagPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UntagPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagRoleMarshallTest() { var operation = service_model.FindOperation("UntagRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagRoleRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagRole_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("UntagRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagRoleRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagRole_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UntagRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagRoleRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagRole_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UntagRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagRoleRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagSAMLProviderMarshallTest() { var operation = service_model.FindOperation("UntagSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagSAMLProviderRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagSAMLProvider_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("UntagSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagSAMLProviderRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagSAMLProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("UntagSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagSAMLProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagSAMLProvider_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UntagSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagSAMLProviderRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagSAMLProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UntagSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagSAMLProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagServerCertificateMarshallTest() { var operation = service_model.FindOperation("UntagServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagServerCertificateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagServerCertificate_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("UntagServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagServerCertificateRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagServerCertificate_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("UntagServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagServerCertificateRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagServerCertificate_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UntagServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagServerCertificateRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagServerCertificate_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UntagServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagServerCertificateRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagUserMarshallTest() { var operation = service_model.FindOperation("UntagUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagUserRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagUser_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("UntagUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagUserRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagUser_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UntagUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagUserRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UntagUser_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UntagUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UntagUserRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UntagUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAccessKeyMarshallTest() { var operation = service_model.FindOperation("UpdateAccessKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAccessKeyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAccessKey_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateAccessKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAccessKeyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateAccessKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAccessKey_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateAccessKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAccessKeyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateAccessKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAccessKey_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateAccessKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAccessKeyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateAccessKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAccountPasswordPolicyMarshallTest() { var operation = service_model.FindOperation("UpdateAccountPasswordPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAccountPasswordPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAccountPasswordPolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateAccountPasswordPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAccountPasswordPolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateAccountPasswordPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAccountPasswordPolicy_MalformedPolicyDocumentExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateAccountPasswordPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAccountPasswordPolicyRequestMarshaller(); 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("MalformedPolicyDocumentException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateAccountPasswordPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAccountPasswordPolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateAccountPasswordPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAccountPasswordPolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateAccountPasswordPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAccountPasswordPolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateAccountPasswordPolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAccountPasswordPolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateAccountPasswordPolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAssumeRolePolicyMarshallTest() { var operation = service_model.FindOperation("UpdateAssumeRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAssumeRolePolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAssumeRolePolicy_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateAssumeRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAssumeRolePolicyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateAssumeRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAssumeRolePolicy_MalformedPolicyDocumentExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateAssumeRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAssumeRolePolicyRequestMarshaller(); 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("MalformedPolicyDocumentException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateAssumeRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAssumeRolePolicy_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateAssumeRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAssumeRolePolicyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateAssumeRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAssumeRolePolicy_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateAssumeRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAssumeRolePolicyRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateAssumeRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateAssumeRolePolicy_UnmodifiableEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateAssumeRolePolicy"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateAssumeRolePolicyRequestMarshaller(); 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("UnmodifiableEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateAssumeRolePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateGroupMarshallTest() { var operation = service_model.FindOperation("UpdateGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateGroupRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateGroup_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateGroupRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateGroup_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateGroupRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateGroup_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateGroupRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateGroup_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateGroup"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateGroupRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateGroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateLoginProfileMarshallTest() { var operation = service_model.FindOperation("UpdateLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateLoginProfileRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateLoginProfile_EntityTemporarilyUnmodifiableExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateLoginProfileRequestMarshaller(); 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("EntityTemporarilyUnmodifiableException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateLoginProfile_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateLoginProfileRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateLoginProfile_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateLoginProfileRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateLoginProfile_PasswordPolicyViolationExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateLoginProfileRequestMarshaller(); 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("PasswordPolicyViolationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateLoginProfile_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateLoginProfile"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateLoginProfileRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateLoginProfileResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateOpenIDConnectProviderThumbprintMarshallTest() { var operation = service_model.FindOperation("UpdateOpenIDConnectProviderThumbprint"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateOpenIDConnectProviderThumbprintRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateOpenIDConnectProviderThumbprint_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateOpenIDConnectProviderThumbprint"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateOpenIDConnectProviderThumbprintRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateOpenIDConnectProviderThumbprintResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateOpenIDConnectProviderThumbprint_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateOpenIDConnectProviderThumbprint"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateOpenIDConnectProviderThumbprintRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateOpenIDConnectProviderThumbprintResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateOpenIDConnectProviderThumbprint_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateOpenIDConnectProviderThumbprint"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateOpenIDConnectProviderThumbprintRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateOpenIDConnectProviderThumbprintResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateRoleMarshallTest() { var operation = service_model.FindOperation("UpdateRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateRoleRequestMarshaller(); 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 = UpdateRoleResponseUnmarshaller.Instance.Unmarshall(context) as UpdateRoleResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateRole_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateRoleRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateRole_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateRoleRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateRole_UnmodifiableEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateRole"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateRoleRequestMarshaller(); 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("UnmodifiableEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateRoleResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateRoleDescriptionMarshallTest() { var operation = service_model.FindOperation("UpdateRoleDescription"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateRoleDescriptionRequestMarshaller(); 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 = UpdateRoleDescriptionResponseUnmarshaller.Instance.Unmarshall(context) as UpdateRoleDescriptionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateRoleDescription_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateRoleDescription"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateRoleDescriptionRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateRoleDescriptionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateRoleDescription_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateRoleDescription"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateRoleDescriptionRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateRoleDescriptionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateRoleDescription_UnmodifiableEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateRoleDescription"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateRoleDescriptionRequestMarshaller(); 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("UnmodifiableEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateRoleDescriptionResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateSAMLProviderMarshallTest() { var operation = service_model.FindOperation("UpdateSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateSAMLProviderRequestMarshaller(); 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 = UpdateSAMLProviderResponseUnmarshaller.Instance.Unmarshall(context) as UpdateSAMLProviderResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateSAMLProvider_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateSAMLProviderRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateSAMLProvider_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateSAMLProviderRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateSAMLProvider_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateSAMLProviderRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateSAMLProvider_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateSAMLProvider"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateSAMLProviderRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateSAMLProviderResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateServerCertificateMarshallTest() { var operation = service_model.FindOperation("UpdateServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateServerCertificateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateServerCertificate_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateServerCertificateRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateServerCertificate_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateServerCertificateRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateServerCertificate_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateServerCertificateRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateServerCertificate_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateServerCertificateRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateServiceSpecificCredentialMarshallTest() { var operation = service_model.FindOperation("UpdateServiceSpecificCredential"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateServiceSpecificCredentialRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateServiceSpecificCredential_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateServiceSpecificCredential"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateServiceSpecificCredentialRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateServiceSpecificCredentialResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateSigningCertificateMarshallTest() { var operation = service_model.FindOperation("UpdateSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateSigningCertificateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateSigningCertificate_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateSigningCertificateRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateSigningCertificate_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateSigningCertificateRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateSigningCertificate_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateSigningCertificateRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateSSHPublicKeyMarshallTest() { var operation = service_model.FindOperation("UpdateSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateSSHPublicKeyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateSSHPublicKey_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateSSHPublicKeyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateSSHPublicKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateUserMarshallTest() { var operation = service_model.FindOperation("UpdateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateUserRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateUser_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateUserRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateUser_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateUserRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateUser_EntityTemporarilyUnmodifiableExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateUserRequestMarshaller(); 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("EntityTemporarilyUnmodifiableException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateUser_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateUserRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateUser_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateUserRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UpdateUser_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UpdateUser"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UpdateUserRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UpdateUserResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadServerCertificateMarshallTest() { var operation = service_model.FindOperation("UploadServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadServerCertificateRequestMarshaller(); 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 = UploadServerCertificateResponseUnmarshaller.Instance.Unmarshall(context) as UploadServerCertificateResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadServerCertificate_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("UploadServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadServerCertificateRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadServerCertificate_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("UploadServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadServerCertificateRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadServerCertificate_InvalidInputExceptionMarshallTest() { var operation = service_model.FindOperation("UploadServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadServerCertificateRequestMarshaller(); 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("InvalidInputException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadServerCertificate_KeyPairMismatchExceptionMarshallTest() { var operation = service_model.FindOperation("UploadServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadServerCertificateRequestMarshaller(); 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("KeyPairMismatchException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadServerCertificate_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("UploadServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadServerCertificateRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadServerCertificate_MalformedCertificateExceptionMarshallTest() { var operation = service_model.FindOperation("UploadServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadServerCertificateRequestMarshaller(); 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("MalformedCertificateException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadServerCertificate_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UploadServerCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadServerCertificateRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadServerCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSigningCertificateMarshallTest() { var operation = service_model.FindOperation("UploadSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSigningCertificateRequestMarshaller(); 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 = UploadSigningCertificateResponseUnmarshaller.Instance.Unmarshall(context) as UploadSigningCertificateResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSigningCertificate_ConcurrentModificationExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSigningCertificateRequestMarshaller(); 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("ConcurrentModificationException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSigningCertificate_DuplicateCertificateExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSigningCertificateRequestMarshaller(); 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("DuplicateCertificateException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSigningCertificate_EntityAlreadyExistsExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSigningCertificateRequestMarshaller(); 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("EntityAlreadyExistsException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSigningCertificate_InvalidCertificateExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSigningCertificateRequestMarshaller(); 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("InvalidCertificateException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSigningCertificate_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSigningCertificateRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSigningCertificate_MalformedCertificateExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSigningCertificateRequestMarshaller(); 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("MalformedCertificateException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSigningCertificate_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSigningCertificateRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSigningCertificate_ServiceFailureExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSigningCertificate"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSigningCertificateRequestMarshaller(); 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("ServiceFailureException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSigningCertificateResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSSHPublicKeyMarshallTest() { var operation = service_model.FindOperation("UploadSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSSHPublicKeyRequestMarshaller(); 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 = UploadSSHPublicKeyResponseUnmarshaller.Instance.Unmarshall(context) as UploadSSHPublicKeyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSSHPublicKey_DuplicateSSHPublicKeyExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSSHPublicKeyRequestMarshaller(); 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("DuplicateSSHPublicKeyException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSSHPublicKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSSHPublicKey_InvalidPublicKeyExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSSHPublicKeyRequestMarshaller(); 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("InvalidPublicKeyException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSSHPublicKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSSHPublicKey_LimitExceededExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSSHPublicKeyRequestMarshaller(); 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("LimitExceededException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSSHPublicKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSSHPublicKey_NoSuchEntityExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSSHPublicKeyRequestMarshaller(); 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("NoSuchEntityException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSSHPublicKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } [TestMethod] [TestCategory("UnitTest")] [TestCategory("Query")] [TestCategory("IdentityManagement")] public void UploadSSHPublicKey_UnrecognizedPublicKeyEncodingExceptionMarshallTest() { var operation = service_model.FindOperation("UploadSSHPublicKey"); var request = InstantiateClassGenerator.Execute(); var marshaller = new UploadSSHPublicKeyRequestMarshaller(); 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("UnrecognizedPublicKeyEncodingException")); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(exception); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, null, true); var response = UploadSSHPublicKeyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); } } }