public void DescribeWorkspacesMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <DescribeWorkspacesRequest>();
            var marshaller = new DescribeWorkspacesRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <DescribeWorkspacesRequest>(request, jsonRequest);

            var webResponse = new WebResponseData
            {
                Headers =
                {
                    { "x-amzn-RequestId", Guid.NewGuid().ToString() },
                    { "x-amz-crc32",      "0"                       }
                }
            };
            var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DescribeWorkspaces").ResponseStructure).Execute();

            webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString());
            UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse);
            var response = DescribeWorkspacesResponseUnmarshaller.Instance.Unmarshall(context)
                           as DescribeWorkspacesResponse;

            InstantiateClassGenerator.ValidateObjectFullyInstantiated(response);
        }
        public void StopAssessmentRunMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <StopAssessmentRunRequest>();
            var marshaller = new StopAssessmentRunRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <StopAssessmentRunRequest>(request, jsonRequest);
        }
        public void RegisterCrossAccountAccessRoleMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <RegisterCrossAccountAccessRoleRequest>();
            var marshaller = new RegisterCrossAccountAccessRoleRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <RegisterCrossAccountAccessRoleRequest>(request, jsonRequest);
        }
        public void UpdateInstanceCustomHealthStatusMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <UpdateInstanceCustomHealthStatusRequest>();
            var marshaller = new UpdateInstanceCustomHealthStatusRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <UpdateInstanceCustomHealthStatusRequest>(request, jsonRequest);
        }
        public void PutThirdPartyJobSuccessResultMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <PutThirdPartyJobSuccessResultRequest>();
            var marshaller = new PutThirdPartyJobSuccessResultRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <PutThirdPartyJobSuccessResultRequest>(request, jsonRequest);
        }
        public void SkipWaitTimeForInstanceTerminationMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <SkipWaitTimeForInstanceTerminationRequest>();
            var marshaller = new SkipWaitTimeForInstanceTerminationRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <SkipWaitTimeForInstanceTerminationRequest>(request, jsonRequest);
        }
Пример #7
0
        public void DeleteNotificationChannelMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <DeleteNotificationChannelRequest>();
            var marshaller = new DeleteNotificationChannelRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <DeleteNotificationChannelRequest>(request, jsonRequest);
        }
Пример #8
0
        public void PutSubscriptionFilterMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <PutSubscriptionFilterRequest>();
            var marshaller = new PutSubscriptionFilterRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <PutSubscriptionFilterRequest>(request, jsonRequest);
        }
Пример #9
0
        public void AdminDeleteUserMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <AdminDeleteUserRequest>();
            var marshaller = new AdminDeleteUserRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <AdminDeleteUserRequest>(request, jsonRequest);
        }
Пример #10
0
        public void DeregisterStreamConsumerMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <DeregisterStreamConsumerRequest>();
            var marshaller = new DeregisterStreamConsumerRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <DeregisterStreamConsumerRequest>(request, jsonRequest);
        }
        public void RespondDecisionTaskCompletedMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <RespondDecisionTaskCompletedRequest>();
            var marshaller = new RespondDecisionTaskCompletedRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <RespondDecisionTaskCompletedRequest>(request, jsonRequest);
        }
        public void RequestCancelWorkflowExecutionMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <RequestCancelWorkflowExecutionRequest>();
            var marshaller = new RequestCancelWorkflowExecutionRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <RequestCancelWorkflowExecutionRequest>(request, jsonRequest);
        }
        public void DeprecateWorkflowTypeMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <DeprecateWorkflowTypeRequest>();
            var marshaller = new DeprecateWorkflowTypeRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <DeprecateWorkflowTypeRequest>(request, jsonRequest);
        }
        public void UpdateCertificateAuthorityMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <UpdateCertificateAuthorityRequest>();
            var marshaller = new UpdateCertificateAuthorityRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <UpdateCertificateAuthorityRequest>(request, jsonRequest);
        }
Пример #15
0
        public void RemoveTagsFromOnPremisesInstancesMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <RemoveTagsFromOnPremisesInstancesRequest>();
            var marshaller = new RemoveTagsFromOnPremisesInstancesRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <RemoveTagsFromOnPremisesInstancesRequest>(request, jsonRequest);
        }
Пример #16
0
        public void EnableKeyRotationMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <EnableKeyRotationRequest>();
            var marshaller = new EnableKeyRotationRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <EnableKeyRotationRequest>(request, jsonRequest);
        }
Пример #17
0
        public void UntagResourceMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <UntagResourceRequest>();
            var marshaller = new UntagResourceRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <UntagResourceRequest>(request, jsonRequest);
        }
        public void ModifyInstanceGroupsMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <ModifyInstanceGroupsRequest>();
            var marshaller = new ModifyInstanceGroupsRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <ModifyInstanceGroupsRequest>(request, jsonRequest);
        }
Пример #19
0
        public void CreateLogStreamMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <CreateLogStreamRequest>();
            var marshaller = new CreateLogStreamRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <CreateLogStreamRequest>(request, jsonRequest);
        }
        public void SetVisibleToAllUsersMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <SetVisibleToAllUsersRequest>();
            var marshaller = new SetVisibleToAllUsersRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <SetVisibleToAllUsersRequest>(request, jsonRequest);
        }
Пример #21
0
        public void DisassociateAdminAccountMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <DisassociateAdminAccountRequest>();
            var marshaller = new DisassociateAdminAccountRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <DisassociateAdminAccountRequest>(request, jsonRequest);
        }
        public void TerminateJobFlowsMarshallTest()
        {
            var request    = InstantiateClassGenerator.Execute <TerminateJobFlowsRequest>();
            var marshaller = new TerminateJobFlowsRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var jsonRequest     = UTF8Encoding.UTF8.GetString(internalRequest.Content);

            Comparer.CompareObjectToJson <TerminateJobFlowsRequest>(request, jsonRequest);
        }