private void VerifyUpdateContentTypeOperation(UpdateContentTypeResponseUpdateContentTypeResult updateContentTypeResult)
{
// Ensure the SOAP result is de-serialized successfully.
Site.Assume.IsNotNull(
updateContentTypeResult,
"The result of UpdateContentType operation must not be null.");
// Verify R1974
// The response have been received successfully, then the following requirement can be captured.
// If the response is not received and parsed successfully, the test case will fail before this requirement is captured
Site.CaptureRequirement(
1974,
@"[The schema of UpdateContentType is defined as:]"
+ @"<wsdl:operation name=""UpdateContentType"">"
+ @" <wsdl:input message=""UpdateContentTypeSoapIn"" />"
+ @" <wsdl:output message=""UpdateContentTypeSoapOut"" />"
+ @"</wsdl:operation>");
// Verify R796
// The response have been received successfully, then the following requirement can be captured.
// If the response is not received and parsed successfully, the test case will fail before this requirement is captured
Site.CaptureRequirement(
796,
@"[In UpdateContentType operation] [If the protocol client sends an "
+ "UpdateContentTypeSoapIn request message] the protocol server responds with "
+ "an UpdateContentTypeSoapOut response message.");
// Verify R1983
// The response have been received successfully, then the following requirement can be captured.
// If the response is not received and parsed successfully, the test case will fail before this requirement is captured
Site.CaptureRequirement(
1982,
@"[UpdateContentTypeSoapOut]The SOAP action value of the message is defined as follows:
http://schemas.microsoft.com/sharepoint/soap/UpdateContentType");
// Verify R1983
// The response have been received successfully, then the following requirement can be captured.
// If the response is not received and parsed successfully, the test case will fail before this requirement is captured
Site.CaptureRequirement(
1983,
@"[UpdateContentTypeSoapOut]The SOAP body contains an "
+ @"UpdateContentTypeResponse element.");
// Verify R1993
// The response have been received successfully, then the following requirement can be captured.
// If the response is not received and parsed successfully, the test case will fail before this requirement is captured
Site.CaptureRequirement(
1993,
@"[UpdateContentTypeResponse] "
+ @"<s:element name=""UpdateContentTypeResponse"">"
+ @" <s:complexType>"
+ @" <s:sequence>"
+ @" <s:element minOccurs=""0"" maxOccurs=""1"" name=""UpdateContentTypeResult"">"
+ @" <s:complexType mixed=""true"">"
+ @" <s:sequence>"
+ @" <s:element name=""Results"">"
+ @" <s:complexType>"
+ @" <s:sequence>"
+ @" <s:element name=""Method"" minOccurs=""0"" "
+ @"maxOccurs=""unbounded"">"
+ @" <s:complexType>"
+ @" <s:sequence>"
+ @" <s:element name=""ErrorCode"" type=""s:string"" />"
+ @" <s:element name=""FieldRef"" "
+ @" type=""tns:FieldReferenceDefinitionCT"" "
+ @" minOccurs=""0"" />"
+ @" <s:element name=""Field"" type=""core:FieldDefinition"" "
+ @" minOccurs=""0"" />"
+ @" <s:element name=""ErrorText"" "
+ @" type=""s:string"" minOccurs=""0"" />"
+ @" </s:sequence>"
+ @" <s:attribute name=""ID"" type=""s:string"" use=""required""/>"
+ @" </s:complexType>"
+ @" </s:element>"
+ @" <s:element name=""ListProperties"">"
+ @" <s:complexType>"
+ @" <s:attribute name=""Description"" type=""s:string"" "
+ @" use=""optional"" />"
+ @" <s:attribute name=""FeatureId"" "
+ @" type=""core:UniqueIdentifierWithOrWithoutBraces"" "
+ @" use=""optional""/>"
+ @" <s:attribute name=""Group"" type=""s:string"" use=""optional"" />"
+ @" <s:attribute name=""Hidden"" "
+ @" type=""core:TRUE_NegOne_Else_Anything"" "
+ @" use=""optional"" />"
+ @" <s:attribute name=""ID"" type=""core:ContentTypeId"" "
+ @" use=""required"" />"
+ @" <s:attribute name=""Name"" type=""s:string"" use=""required"" />"
+ @" <s:attribute name=""ReadOnly"" "
+ @" type=""core:TRUE_NegOne_Else_Anything"" "
+ @" use=""optional"" />"
+ @" <s:attribute name=""Sealed"" "
+ @" type=""core:TRUE_Case_Sensitive_Else_Anything"" "
+ @" use=""optional"" />"
+ @" <s:attribute name=""V2ListTemplateName"" type=""s:string"" "
+ @" use=""optional""/>"
+ @" <s:attribute name=""Version"" type=""s:long"" use=""optional"" />"
+ @" <s:anyAttribute namespace=""##other"" processContents=""lax"" />"
+ @" </s:complexType>"
+ @" </s:element>"
+ @" </s:sequence>"
+ @" </s:complexType>"
+ @" </s:element>"
+ @" </s:sequence>"
+ @" </s:complexType>"
+ @" </s:element>"
+ @" </s:sequence>"
+ @" </s:complexType>"
+ @"</s:element>");
// Verify R1994
// The response have been received successfully, then the following requirement can be captured.
// If the response is not received and parsed successfully, the test case will fail before this requirement is captured.
Site.CaptureRequirement(
1994,
@"[UpdateContentTypeResponse]Results: The container for data on the update of a content type.");
// Verify R1995
// The response have been received successfully, then the following requirement can be captured.
// If the response is not received and parsed successfully, the test case will fail before this requirement is captured.
Site.CaptureRequirement(
1995,
@"[UpdateContentTypeResponse]Method: The container for data on a field add, update, or remove operation.");
// Verify R1997
// The response have been received successfully, then the following requirement can be captured.
// If the response is not received and parsed successfully, the test case will fail before this requirement is captured
Site.CaptureRequirement(
1997,
@"[UpdateContentTypeResponse]Field: A FieldDefinition, as specified by [MS-WSSFO2] "
+ "section 2.2.8.3.3.[A field definition describes the structure and format of a field that "
+ "is used within a list or content type.]");
// Verify R1998
// The response have been received successfully, then the following requirement can be captured.
// If the response is not received and parsed successfully, the test case will fail before this requirement is captured.
Site.CaptureRequirement(
1998,
@"[UpdateContentTypeResponse]ListProperties: Contains updated data for the content type.");
// Verify the requirements of FieldReferenceDefinitionCT complex type.
foreach (UpdateContentTypeResponseUpdateContentTypeResultResultsMethod method in updateContentTypeResult.Results.Method)
{
if (method.FieldRef != null)
{
this.VerifyFieldReferenceDefinitionCT(method.FieldRef);
}
}
}