Microsoft.Protocols.TestSuites.MS_ASCNTC.S01_Sync.MSASCNTC_S01_TC05_Sync_Status6_PictureExceeds48KB C# (CSharp) Method

MSASCNTC_S01_TC05_Sync_Status6_PictureExceeds48KB() private method

private MSASCNTC_S01_TC05_Sync_Status6_PictureExceeds48KB ( ) : void
return void
        public void MSASCNTC_S01_TC05_Sync_Status6_PictureExceeds48KB()
        {
            #region Call Sync command with Add element to add a contact with a picture whose value exceeds 48 KB
            string picture = "BigPhoto.jpg";

            Dictionary<Request.ItemsChoiceType8, object> contactProperties = this.SetContactProperties(picture);

            SyncStore syncAddStore = this.AddContact(this.User1Information.ContactsCollectionId, contactProperties);
            #endregion

            #region Verify requirement
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASCNTC_R384.");

            // If the Status in the response is 6, then requirement MS-ASCNTC_R384 can be captured.
            // Verify MS-ASCNTC requirement: MS-ASCNTC_R384
            Site.CaptureRequirementIfAreEqual<int>(
                6,
                int.Parse(syncAddStore.AddResponses[0].Status),
                384,
                @"[In Picture] If the value of the Picture element exceeds 48 KB of content with base64 encoding, the server MUST return a status error of 6.");
            #endregion
        }
        #endregion