ve-backend-internship-spring2022 / EduManagementLab

MIT License
0 stars 4 forks source link

Courses Controller tests will not pass using SQL Server #54

Closed martinvehmas closed 2 years ago

martinvehmas commented 2 years ago

Membership for a user that does not exist is added and updated. The test pass because we use a InMemoryDatabase that dont check for referential integrity. The tests will not work with SQL Server.

https://github.com/ve-backend-internship-spring2022/EduManagementLab/blob/d8084763f8748cd579a7d431481fda4d9479e004/EduManagementLab.Api.Tests/Controllers/CoursesControllerTests.cs#L282

https://github.com/ve-backend-internship-spring2022/EduManagementLab/blob/d8084763f8748cd579a7d431481fda4d9479e004/EduManagementLab.Api.Tests/Controllers/CoursesControllerTests.cs#L306