Kavita/API/Entities
Joseph Milazzo bbe8f800f6
.NET 6 Coding Patterns + Unit Tests (#823)
* Refactored all files to have Interfaces within the same file. Started moving over to file-scoped namespaces.

* Refactored common methods for getting underlying file's cover, pages, and extracting into 1 interface.

* More refactoring around removing dependence on explicit filetype testing for getting information.

* Code is buildable, tests are broken. Huge refactor (not completed) which makes most of DirectoryService testable with a mock filesystem (and thus the services that utilize it).

* Finished porting DirectoryService to use mocked filesystem implementation.

* Added a null check

* Added a null check

* Finished all unit tests for DirectoryService.

* Some misc cleanup on the code

* Fixed up some bugs from refactoring scan loop.

* Implemented CleanupService testing and refactored more of DirectoryService to be non-static.

Fixed a bug where cover file cleanup wasn't properly finding files due to a regex bug.

* Fixed an issue in CleanupBackup() where we weren't properly selecting database files older than 30 days. Finished CleanupService Tests.

* Refactored Flatten and RemoveNonImages to directory service to allow CacheService to be testable.

* Finally have CacheService tested. Rewrote GetCachedPagePath() to be much more straightforward & performant.

* Updated DefaultParserTests.cs to contain all existing tests and follow new test layout format.

* All tests fixed up
2021-12-05 08:58:53 -08:00
..
Enums Local Metadata Integration Part 1 (#817) 2021-12-02 09:02:34 -08:00
Interfaces Added ability to automatically track last modified and created timestamps for entities via an interface. DBContext will automatically update for us. 2021-01-02 10:59:52 -06:00
Metadata Local Metadata Integration Part 1 (#817) 2021-12-02 09:02:34 -08:00
AppRole.cs Refractor token auth stuff to use identiycore framework 2020-12-21 09:24:21 -06:00
AppUser.cs Reading Lists & More (#564) 2021-09-08 12:03:27 -05:00
AppUserBookmark.cs Bookmarking Pages within the Reader (#469) 2021-08-10 18:18:07 -05:00
AppUserPreferences.cs Fit Split to Screen (#769) 2021-11-18 06:55:52 -08:00
AppUserProgress.cs ComicInfo Refactor (#636) 2021-10-04 16:10:48 -07:00
AppUserRating.cs Implemented ability to leave a rating (up to 5 stars) and a text review (not UI supported until v0.2). 2021-01-19 17:06:26 -06:00
AppUserRole.cs Refractor token auth stuff to use identiycore framework 2020-12-21 09:24:21 -06:00
Chapter.cs .NET 6 Coding Patterns + Unit Tests (#823) 2021-12-05 08:58:53 -08:00
CollectionTag.cs Local Metadata Integration Part 1 (#817) 2021-12-02 09:02:34 -08:00
FolderPath.cs Scan Chunking (#604) 2021-09-30 06:08:05 -07:00
Genre.cs .NET 6 Coding Patterns + Unit Tests (#823) 2021-12-05 08:58:53 -08:00
Library.cs Polishing and Bugfixes (#613) 2021-10-01 08:13:55 -07:00
MangaFile.cs Local Metadata Integration Part 1 (#817) 2021-12-02 09:02:34 -08:00
Person.cs Local Metadata Integration Part 1 (#817) 2021-12-02 09:02:34 -08:00
ReadingList.cs Reading Lists & More (#564) 2021-09-08 12:03:27 -05:00
ReadingListItem.cs Cleanup bookmarks and Reading List Items (#567) 2021-09-08 14:41:41 -07:00
Series.cs Local Metadata Integration Part 1 (#817) 2021-12-02 09:02:34 -08:00
ServerSetting.cs Bulk Add to Collection (#674) 2021-10-14 17:23:21 -07:00
Volume.cs ComicInfo Refactor (#636) 2021-10-04 16:10:48 -07:00