C# Class Microsoft.Protocols.TestSuites.MS_OXWSTASK.TestSuiteHelper

A class contains all helper methods used in test cases.
Mostrar archivo Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Public Methods

Method Description
CompareStringArray ( string arrayFirst, string arraySecond ) : bool

Compare two string array to verify whether their value are equal.

DefineTaskItem ( string subject ) : TaskType

Define the task item with index.

DefineTaskItem ( string subject, TaskDelegateStateType taskDelegateState, bool isSetting ) : TaskType

Define the task item via setting taskDelegateState value.

DefineTaskItem ( string subject, TaskRecurrenceType taskRecurrence ) : TaskType

Define the task item via setting different kind of taskRecurrence value.

DefineTaskItem ( string subject, TaskStatusType taskStatus ) : TaskType

Define the task item via setting taskStatus value.

GenerateAbsoluteMonthlyRecurrencePattern ( ) : AbsoluteMonthlyRecurrencePatternType

Generate the absolute monthly recurrence pattern.

GenerateAbsoluteYearlyRecurrencePattern ( ) : AbsoluteYearlyRecurrencePatternType

Generate the absolute yearly recurrence pattern.

GenerateCopyItemRequest ( ) : CopyItemType

Generate CopyItemRequest.

GenerateCreateItemRequest ( ) : CreateItemType

Generate CreateItemRequest.

GenerateDailyRecurrencePattern ( ) : DailyRecurrencePatternType

Generate the daily recurrence pattern.

GenerateDailyRegeneratingPattern ( ) : DailyRegeneratingPatternType

Generate the daily regenerating pattern.

GenerateDeleteItemRequest ( ) : DeleteItemType

Generate DeleteItemRequest.

GenerateEndDateRecurrenceRange ( ) : EndDateRecurrenceRangeType

Generate the end date recurrence range.

GenerateGetItemRequest ( ) : GetItemType

Generate GetItemRequest.

GenerateMonthlyRegeneratingPattern ( ) : MonthlyRegeneratingPatternType

Generate the monthly regenerating pattern.

GenerateMoveItemRequest ( ) : MoveItemType

Generate MoveItemRequest.

GenerateNoEndRecurrenceRange ( ) : NoEndRecurrenceRangeType

Generate the no end recurrence range.

GenerateNumberedRecurrenceRange ( ) : NumberedRecurrenceRangeType

Generate the numbered recurrence range.

GenerateRelativeMonthlyRecurrencePattern ( ) : RelativeMonthlyRecurrencePatternType

Generate the relative monthly recurrence pattern.

GenerateRelativeYearlyRecurrencePattern ( ) : RelativeYearlyRecurrencePatternType

Generate the relative yearly recurrence pattern.

GenerateTaskRecurrence ( GenerateRecurPattern generateRecurPatternMethod, GenerateRecurRange generateRecurRangeMethod ) : TaskRecurrenceType

Generate the task recurrence used by TaskType.

GenerateUpdateItemRequest ( ) : UpdateItemType

Generate UpdateItemRequest.

GenerateWeeklyRecurrencePattern ( ) : WeeklyRecurrencePatternType

Generate the weekly recurrence pattern.

GenerateWeeklyRegeneratingPattern ( ) : WeeklyRegeneratingPatternType

Generate the weekly regenerating pattern.

GenerateYearlyRegeneratingPattern ( ) : YearlyRegeneratingPatternType

Generate the yearly regenerating pattern.

Method Details

CompareStringArray() public static method

Compare two string array to verify whether their value are equal.
public static CompareStringArray ( string arrayFirst, string arraySecond ) : bool
arrayFirst string The first string array
arraySecond string The second string array
return bool

DefineTaskItem() public static method

Define the task item with index.
public static DefineTaskItem ( string subject ) : TaskType
subject string The subject of the task
return Microsoft.Protocols.TestSuites.Common.TaskType

DefineTaskItem() public static method

Define the task item via setting taskDelegateState value.
public static DefineTaskItem ( string subject, TaskDelegateStateType taskDelegateState, bool isSetting ) : TaskType
subject string The subject of the task.
taskDelegateState TaskDelegateStateType DelegationState element value of the task.
isSetting bool The flag to indicate whether the taskDelegateState is setting or not, true means setting.
return Microsoft.Protocols.TestSuites.Common.TaskType

DefineTaskItem() public static method

Define the task item via setting different kind of taskRecurrence value.
public static DefineTaskItem ( string subject, TaskRecurrenceType taskRecurrence ) : TaskType
subject string The subject of the task.
taskRecurrence Microsoft.Protocols.TestSuites.Common.TaskRecurrenceType Recurrence element value of the task.
return Microsoft.Protocols.TestSuites.Common.TaskType

DefineTaskItem() public static method

Define the task item via setting taskStatus value.
public static DefineTaskItem ( string subject, TaskStatusType taskStatus ) : TaskType
subject string The subject of the task.
taskStatus TaskStatusType Status element value of the task.
return Microsoft.Protocols.TestSuites.Common.TaskType

GenerateAbsoluteMonthlyRecurrencePattern() public static method

Generate the absolute monthly recurrence pattern.
public static GenerateAbsoluteMonthlyRecurrencePattern ( ) : AbsoluteMonthlyRecurrencePatternType
return Microsoft.Protocols.TestSuites.Common.AbsoluteMonthlyRecurrencePatternType

GenerateAbsoluteYearlyRecurrencePattern() public static method

Generate the absolute yearly recurrence pattern.
public static GenerateAbsoluteYearlyRecurrencePattern ( ) : AbsoluteYearlyRecurrencePatternType
return Microsoft.Protocols.TestSuites.Common.AbsoluteYearlyRecurrencePatternType

GenerateCopyItemRequest() public static method

Generate CopyItemRequest.
public static GenerateCopyItemRequest ( ) : CopyItemType
return CopyItemType

GenerateCreateItemRequest() public static method

Generate CreateItemRequest.
public static GenerateCreateItemRequest ( ) : CreateItemType
return Microsoft.Protocols.TestSuites.Common.CreateItemType

GenerateDailyRecurrencePattern() public static method

Generate the daily recurrence pattern.
public static GenerateDailyRecurrencePattern ( ) : DailyRecurrencePatternType
return DailyRecurrencePatternType

GenerateDailyRegeneratingPattern() public static method

Generate the daily regenerating pattern.
public static GenerateDailyRegeneratingPattern ( ) : DailyRegeneratingPatternType
return DailyRegeneratingPatternType

GenerateDeleteItemRequest() public static method

Generate DeleteItemRequest.
public static GenerateDeleteItemRequest ( ) : DeleteItemType
return Microsoft.Protocols.TestSuites.Common.DeleteItemType

GenerateEndDateRecurrenceRange() public static method

Generate the end date recurrence range.
public static GenerateEndDateRecurrenceRange ( ) : EndDateRecurrenceRangeType
return Microsoft.Protocols.TestSuites.Common.EndDateRecurrenceRangeType

GenerateGetItemRequest() public static method

Generate GetItemRequest.
public static GenerateGetItemRequest ( ) : GetItemType
return Microsoft.Protocols.TestSuites.Common.GetItemType

GenerateMonthlyRegeneratingPattern() public static method

Generate the monthly regenerating pattern.
public static GenerateMonthlyRegeneratingPattern ( ) : MonthlyRegeneratingPatternType
return MonthlyRegeneratingPatternType

GenerateMoveItemRequest() public static method

Generate MoveItemRequest.
public static GenerateMoveItemRequest ( ) : MoveItemType
return MoveItemType

GenerateNoEndRecurrenceRange() public static method

Generate the no end recurrence range.
public static GenerateNoEndRecurrenceRange ( ) : NoEndRecurrenceRangeType
return NoEndRecurrenceRangeType

GenerateNumberedRecurrenceRange() public static method

Generate the numbered recurrence range.
public static GenerateNumberedRecurrenceRange ( ) : NumberedRecurrenceRangeType
return Microsoft.Protocols.TestSuites.Common.NumberedRecurrenceRangeType

GenerateRelativeMonthlyRecurrencePattern() public static method

Generate the relative monthly recurrence pattern.
public static GenerateRelativeMonthlyRecurrencePattern ( ) : RelativeMonthlyRecurrencePatternType
return Microsoft.Protocols.TestSuites.Common.RelativeMonthlyRecurrencePatternType

GenerateRelativeYearlyRecurrencePattern() public static method

Generate the relative yearly recurrence pattern.
public static GenerateRelativeYearlyRecurrencePattern ( ) : RelativeYearlyRecurrencePatternType
return Microsoft.Protocols.TestSuites.Common.RelativeYearlyRecurrencePatternType

GenerateTaskRecurrence() public static method

Generate the task recurrence used by TaskType.
public static GenerateTaskRecurrence ( GenerateRecurPattern generateRecurPatternMethod, GenerateRecurRange generateRecurRangeMethod ) : TaskRecurrenceType
generateRecurPatternMethod GenerateRecurPattern The method to generate recurrence pattern type.
generateRecurRangeMethod GenerateRecurRange The method to generate recurrence range type.
return Microsoft.Protocols.TestSuites.Common.TaskRecurrenceType

GenerateUpdateItemRequest() public static method

Generate UpdateItemRequest.
public static GenerateUpdateItemRequest ( ) : UpdateItemType
return Microsoft.Protocols.TestSuites.Common.UpdateItemType

GenerateWeeklyRecurrencePattern() public static method

Generate the weekly recurrence pattern.
public static GenerateWeeklyRecurrencePattern ( ) : WeeklyRecurrencePatternType
return Microsoft.Protocols.TestSuites.Common.WeeklyRecurrencePatternType

GenerateWeeklyRegeneratingPattern() public static method

Generate the weekly regenerating pattern.
public static GenerateWeeklyRegeneratingPattern ( ) : WeeklyRegeneratingPatternType
return WeeklyRegeneratingPatternType

GenerateYearlyRegeneratingPattern() public static method

Generate the yearly regenerating pattern.
public static GenerateYearlyRegeneratingPattern ( ) : YearlyRegeneratingPatternType
return YearlyRegeneratingPatternType