p7-projekt / api-backend

Backend API
MIT License
0 stars 0 forks source link

First round of tests #97

Closed KristianS93 closed 4 days ago

KristianS93 commented 5 days ago

Description

Create unit tests for the session service. Extended to haskellservice aswell

Resolved Issue

Fixes #96

Changes

Changes to session service and session service test.

Checklist

KristianS93 commented 4 days ago

The createsessiondtovalidator for the description should maybe have a check that if a string is provided that it doesnt just contains spaces, and letters/digits are part of the description.

KristianS93 commented 4 days ago

In SubmitSolutionAsync, it might make sense to introduce some kind of error code if the insertion failed or some other strategy, to mitigate the issue like a retry,