private float?GetDefaultEffort(FieldsB fieldsB)
 {
     if (fieldsB.MicrosoftVSTSSchedulingEffort.HasValue)
     {
         return(fieldsB.MicrosoftVSTSSchedulingEffort);
     }
     else
     {
         if (fieldsB.MicrosoftVSTSSchedulingStoryPoints.HasValue)
         {
             return(fieldsB.MicrosoftVSTSSchedulingStoryPoints);
         }
         else
         {
             if (fieldsB.MicrosoftVSTSSchedulingSize.HasValue)
             {
                 return(fieldsB.MicrosoftVSTSSchedulingSize);
             }
             else
             {
                 return(0);
             }
         }
     }
 }
        private float?GetEffort(EffortType effortType, FieldsB fieldsB)
        {
            float?effort;

            switch (effortType)
            {
            case EffortType.Effort:
                effort = fieldsB.MicrosoftVSTSSchedulingEffort;
                break;

            case EffortType.StoryPoints:
                effort = fieldsB.MicrosoftVSTSSchedulingStoryPoints;
                break;

            case EffortType.Size:
                effort = fieldsB.MicrosoftVSTSSchedulingSize;
                break;

            default:
                effort = GetDefaultEffort(fieldsB);
                break;
            }

            return(effort);
        }