When using "SQL domain" constrains are checked and exception is thrown in case some required field is not entered:
But for in-memory database the same code works without any problem - this bring us to problem, we can't use in-memory database for unit testing, because results from these test will be inconclusive with actual SQL domain behavior. Is this a known issue, that will be fixed somehow soon, or is there some settings to force constrains check on in-memory database? |
Hello Martin, Try using Validation framework, it is expected to work for both kind of storages (in-memory & sql). Here is the link to the manual. |