public void MSASCAL_S01_TC06_StartTimeAbsentEndTimePast()
{
#region Call Sync command to add a calendar with the element EndTime setting as past time to the server, and sync calendars from the server.
Dictionary<Request.ItemsChoiceType8, object> calendarItem = new Dictionary<Request.ItemsChoiceType8, object>
{
{
Request.ItemsChoiceType8.StartTime, null
},
{
Request.ItemsChoiceType8.EndTime, DateTime.Now.AddYears(-5).ToString("yyyyMMddTHHmmssZ")
}
};
SyncStore addCalendarResponse = this.AddSyncCalendar(calendarItem);
#endregion
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASCAL_R52515");
// Verify MS-ASCAL requirement: MS-ASCAL_R52515
Site.CaptureRequirementIfAreEqual<string>(
"6",
addCalendarResponse.AddResponses[0].Status,
52515,
@"[In Creating Calendar Events when the StartTime Element or EndTime Element is Absent] If StartTime is absent and EndTime is in the past the server includes a Status element with a value of 6 in the response, as specified in [MS-ASCMD] section 2.2.3.162.16, indicating an error occurred.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASCAL_R53915");
// Verify MS-ASCAL requirement: MS-ASCAL_R53915
Site.CaptureRequirementIfAreEqual<string>(
"6",
addCalendarResponse.AddResponses[0].Status,
53915,
@"[In Sync Command Response][The Sync command response contains an airsync:Status element ([MS-ASCMD] section 2.2.3.162.16) with a value of 6 in the following cases:] The EndTime element (section 2.2.2.18) is included in a request and the StartTime element is not included in the request.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASCAL_R5251611");
// Verify MS-ASCAL requirement: MS-ASCAL_R5251611
Site.CaptureRequirementIfAreEqual<string>(
"6",
addCalendarResponse.AddResponses[0].Status,
5251611,
@"[In Creating Calendar Events when the StartTime Element or EndTime Element is Absent] If the rounded current time is after the end time, the server includes a Status element with a value of 6 in the response, indicating an error occurred.");
}