Lenkelheit / Coursework

This repository contains Instagram-like application
Apache License 2.0
1 stars 0 forks source link

Some AppContext tests fails #125

Open Lenkelheit opened 5 years ago

Lenkelheit commented 5 years ago

The tests with checking the cascade deleting(1) and some entities null exceptions(2) fails. It happens because 1 - all logic that replaces the cascade deleting is in repositories' classes, so it only normally works with repositories, but not AppContext. In future we can rework it, for example, to triggers or to smth else. 2 - for good work with data almost all relationships between entities are setted to HasOptional from HasRequired, so some entities allow to have null value.

Reference to commit - 50b351699f186747a1029ab639702005408a519f

iamprovidence commented 5 years ago

We have some ideas to fix this in #59 . Maybe we should try something with triggers