public void DeleteListenerMarshallTest() { var request = InstantiateClassGenerator.Execute <DeleteListenerRequest>(); var marshaller = new DeleteListenerRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <DeleteListenerRequest>(request, jsonRequest); }
public void DeleteListenerMarshallTest() { var operation = service_model.FindOperation("DeleteListener"); var request = InstantiateClassGenerator.Execute <DeleteListenerRequest>(); var marshaller = new DeleteListenerRequestMarshaller(); 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 = DeleteListenerResponseUnmarshaller.Instance.Unmarshall(context) as DeleteListenerResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
public void DeleteListenerMarshallTest() { var operation = service_model.FindOperation("DeleteListener"); var request = InstantiateClassGenerator.Execute<DeleteListenerRequest>(); var marshaller = new DeleteListenerRequestMarshaller(); 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 = DeleteListenerResponseUnmarshaller.Instance.Unmarshall(context) as DeleteListenerResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }