fix:#57 added test and converted encoding

This commit is contained in:
Elmar Kresse
2024-10-07 22:34:52 +02:00
parent 8e9976e607
commit 35eab8d2f6
3 changed files with 90 additions and 73 deletions

View File

@@ -10,6 +10,11 @@ type MockCourseService struct {
mock.Mock
}
func (m *MockCourseService) FindCourseByCourseName(courseName string) (model.SeminarGroup, error) {
args := m.Called(courseName)
return args.Get(0).(model.SeminarGroup), args.Error(1)
}
func (m *MockCourseService) GetAllCourses() []string {
args := m.Called()
return args.Get(0).([]string)