AWSSDK_DotNet35.UnitTests.Marshalling.DirectConnectMarshallingTests.DescribeLocationsMarshallTest C# (CSharp) Метод

DescribeLocationsMarshallTest() приватный Метод

private DescribeLocationsMarshallTest ( ) : void
Результат void
        public void DescribeLocationsMarshallTest()
        {
            var request = InstantiateClassGenerator.Execute<DescribeLocationsRequest>();
            var marshaller = new DescribeLocationsRequestMarshaller();

            var internalRequest = marshaller.Marshall(request);
            var webResponse = new WebResponseData
            {
                Headers = {
                    {"x-amzn-RequestId", Guid.NewGuid().ToString()},
                    {"x-amz-crc32","0"}
                }
            };
            var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DescribeLocations").ResponseStructure).Execute();
            webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString());
            UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse);
            var response = DescribeLocationsResponseUnmarshaller.Instance.Unmarshall(context)
                as DescribeLocationsResponse;
            InstantiateClassGenerator.ValidateObjectFullyInstantiated(response);
        }