public void UpdateGradingOptionTest2()
        {
            // Arrange
            var errors = new List<string>();
            var mockRepository = new Mock<IStudentRepository>();
            var studentService = new StudentService(mockRepository.Object);
            var enrollments = new List<Enrollment>();
            enrollments.Add(new Enrollment { Grade = "A", GradeValue = 4.0f, ScheduleId = 1, StudentId = "testId" });
            mockRepository.Setup(x => x.GetEnrollments("testId")).Returns(enrollments);

            // Act
            studentService.UpdateGradingOption("testId", 1, "Letter", ref errors);

            // Assert
            Assert.AreEqual(0, errors.Count);
        }
        public string UpdateGradingOption(string studentId, int scheduleId, string gradingOpt)
        {
            var errors = new List<string>();
            var repository = new StudentRepository();
            var service = new StudentService(repository);
            service.UpdateGradingOption(studentId, scheduleId, gradingOpt, ref errors);
            if (errors.Count == 0)
            {
                return "ok";
            }

            return "error";
        }
        public void UpdateGradingOptionTest()
        {
            // Arrange
            var errors = new List<string>();
            var mockRepository = new Mock<IStudentRepository>();
            var studentService = new StudentService(mockRepository.Object);

            // Act
            studentService.UpdateGradingOption(string.Empty, 0, string.Empty, ref errors);

            // Assert
            Assert.AreEqual(1, errors.Count);
        }