public static void SetAssessment(Assessment assessment) { switch (assessment.AssessmentType) { case AssessmentType.Item50: File.WriteAllText(Extension.Item50, assessment.Bloberize()); break; case AssessmentType.Item60: File.WriteAllText(Extension.Item60, assessment.Bloberize()); break; case AssessmentType.Item70: File.WriteAllText(Extension.Item70, assessment.Bloberize()); break; case AssessmentType.Item80: File.WriteAllText(Extension.Item80, assessment.Bloberize()); break; case AssessmentType.Item90: File.WriteAllText(Extension.Item90, assessment.Bloberize()); break; case AssessmentType.Item100: File.WriteAllText(Extension.Item100, assessment.Bloberize()); break; } }