private void VerifyFieldReferenceDefinitionCT(
FieldReferenceDefinitionCT field)
{
// Verify R1314
// 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(
1314,
@"[FieldReferenceDefinitionCT]Specifies data on a field included in a content type.");
// Verify R1315
// 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(
1315,
@"[The schema of FieldReferenceDefinitionCT is defined as:]"
+ @"<s:complexType name=""FieldReferenceDefinitionCT"">"
+ @" <s:attribute name=""Aggregation"" type=""s:string""/>"
+ @" <s:attribute name=""Customization"" type=""s:string""/>"
+ @" <s:attribute name=""DisplayName"" type=""s:string""/>"
+ @" <s:attribute name=""Format"" type=""s:string""/>"
+ @" <s:attribute name=""Hidden"" type=""core:TRUEFALSE""/>"
+ @" <s:attribute name=""ID"" type=""core:UniqueIdentifierWithOrWithoutBraces"" "
+ @" use=""required""/>"
+ @" <s:attribute name=""Name"" type=""s:string"" use=""required""/>"
+ @" <s:attribute name=""Node"" type=""s:string""/>"
+ @" <s:attribute name=""PIAttribute"" type=""s:string""/>"
+ @" <s:attribute name=""PITarget"" type=""s:string""/>"
+ @" <s:attribute name=""PrimaryPIAttribute"" type=""s:string""/>"
+ @" <s:attribute name=""PrimaryPITarget"" type=""s:string""/>"
+ @" <s:attribute name=""ReadOnly"" type=""core:TRUEFALSE""/>"
+ @" <s:attribute name=""Required"" type=""core:TRUEFALSE""/>"
+ @" <s:attribute name=""ShowInEditForm"" type=""core:TRUEFALSE""/>"
+ @" <s:attribute name=""ShowInNewForm"" type=""core:TRUEFALSE""/>"
+ @"</s:complexType>");
Site.Assert.IsNotNull(field, "The FieldReferenceDefinitionCT cannot be null");
// Verify R1316
if (!string.IsNullOrEmpty(field.Node))
{
// Verify MS-LISTSWS requirement: MS-LISTSWS_R1316
// For the fields with the Node or node attribute, if the Aggregation
// attribute is not null, then the following requirement can be captured.
Site.CaptureRequirementIfIsNotNull(
field.Aggregation,
1316,
@"[FieldReferenceDefinitionCT.Aggregation:] Overrides the field value specified in [MS-WSSFO2] section 2.2.8.3.3.2 for this reference to the field.
[Aggregation: For fields with the Node or node attribute, a reader MUST use this attribute[Aggregation] to control promotion from XML or site template files.
For other fields, a reader MUST ignore this attribute[Aggregation].]");
}
// Verify R1205
// If all the above requirements are verified, then the requirement can be
// captured.
Site.CaptureRequirement(
1205,
@"[In Complex Types]The Complex type FieldReferenceDefinitionCT is used Specifies data "
+ "on a field included in a content type.");
}