public void TestCase_S12_TC16_QueryChanges_AllowFragments_Zero()
{
// Initialize the service
string fileUrl = Common.GetConfigurationPropertyValue("BigFile", this.Site);
this.InitializeContext(fileUrl, this.UserName01, this.Password01, this.Domain);
// Create query changes request with allow fragments flag with the value true.
FsshttpbCellRequest cellRequest = SharedTestSuiteHelper.CreateFsshttpbCellRequest();
QueryChangesCellSubRequest queryChange = SharedTestSuiteHelper.BuildFsshttpbQueryChangesSubRequest(SequenceNumberGenerator.GetCurrentFSSHTTPBSubRequestID(), 0, false, false, true, 0, true, true, 0, null, 100, null, null);
cellRequest.AddSubRequest(queryChange, null);
CellSubRequestType cellSubRequest = SharedTestSuiteHelper.CreateCellSubRequest(SequenceNumberGenerator.GetCurrentToken(), cellRequest.ToBase64());
CellStorageResponse cellStorageResponse = this.Adapter.CellStorageRequest(fileUrl, new SubRequestType[] { cellSubRequest });
CellSubResponseType subResponse = SharedTestSuiteHelper.ExtractSubResponse<CellSubResponseType>(cellStorageResponse, 0, 0, this.Site);
this.Site.Assert.AreEqual<ErrorCodeType>(
ErrorCodeType.Success,
SharedTestSuiteHelper.ConvertToErrorCodeType(subResponse.ErrorCode, this.Site),
"Test case cannot continue unless the query changes succeed.");
FsshttpbResponse queryResponse = SharedTestSuiteHelper.ExtractFsshttpbResponse(subResponse, this.Site);
SharedTestSuiteHelper.ExpectMsfsshttpbSubResponseSucceed(queryResponse, this.Site);
DataElement fragDataElement = queryResponse.DataElementPackage.DataElements.FirstOrDefault(e => e.DataElementType == DataElementType.FragmentDataElementData);
if (SharedContext.Current.IsMsFsshttpRequirementsCaptured)
{
Site.CaptureRequirementIfIsNull(
fragDataElement,
"MS-FSSHTTPB",
2145,
@"[In Query Changes] B - Allow Fragments (1 bit): otherwise[If B - Allow Fragments is not set], it[B - Allow Fragments] does not allow fragments.");
}
else
{
this.Site.Assert.IsNull(
fragDataElement,
@"[In Query Changes] B - Allow Fragments (1 bit): otherwise[If B - Allow Fragments is not set], it[B - Allow Fragments] does not allow fragments.");
}
}