/// <summary>
 /// Create/Update a child/parent option
 /// </summary>
 /// <param name="requestType">Request type</param>
 /// <param name="optionNestingType">Child/Parent</param>
 /// <param name="inputType">Test case</param>
 /// <param name="options">options == null : 'create' ? 'update'</param>
 private static void WriteAndVerifyOption(Operation operation, ValidOptionSpecial inputType, List <OptionWriteResponse> options = null)
 {
     if (operation == Operation.Insert)
     {
         if (inputType == ValidOptionSpecial.ParentHas100Children)
         {
             VerifyParentHasChildrenOptionById(WriteParentHasChildrenOptions().Result);
         }
         else
         {
             VerifyChildrenHasChildrenOptionById(WriteChildrenHasChildrenOptions().Result);
         }
     }
     else
     {
         if (inputType == ValidOptionSpecial.ParentHas100Children)
         {
             VerifyParentHasChildrenOptionById(WriteParentHasChildrenOptions(Common.GetOptionsByCurrentContext("childOptionCreateResponse")).Result);
         }
         else
         {
             VerifyChildrenHasChildrenOptionById(WriteChildrenHasChildrenOptions(Common.GetOptionsByCurrentContext("childrenHasChildrenCreateResponse")).Result);
         }
     }
 }
 public void WriteValidOption(Operation operation, ValidOptionSpecial inputType)
 {
     WriteAndVerifyOption(operation, inputType);
 }