Commit graph

3 commits

Author SHA1 Message Date
Josh
c529dada35
Migrate to SQLite EF provider for testing (#966)
* Migrate to Sqlite EF provider for testing

* Fix failing unit test
2024-01-18 01:03:07 +00:00
koko
665f9d9d34
Don't dismiss already dismissed cases in repeating task (#897)
* Don't dismiss already dismissed cases in repeating task

* Implement unit test to cover patch

* Remove unnecessary null check
2023-09-13 09:04:12 -04:00
koko
22c220c432
Implement dismiss expired cases repeating task (#891)
* Implement dismiss expired cases repeating task

I have the time temporarily set to every 1 minute for testing purposes

* Rename cases list variable to be a bit more self documenting

* Switch repeat interval to four hours

* Make no operation log a debug

* Add case expiration unit tests

I called the file ModerationTests in case we want to add more general moderation unit tests in the future

* I blame zaprit

* Fix tests

* Tests nitpicks and use UtcNow instead of Now

* Use Assert.Null and Assert.NotNull for better readability
2023-09-13 11:12:25 +00:00