mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 01:58:40 +00:00
Rewrite gameserver slot filter system (#763)
* Initial implementation of new slot sorting and filtering system * Initial implementation of filtering for lbp3 community tab * Add support for organization on lbp3 * Add playlist and user categories * Implement unit tests for all filters Refactor more systems to use PaginationData * Fix PlayerCountFilter test * Add more unit tests and integration tests for the filter system * Fix LBP2 move filter and gameFilterType * Fix sort by likes in LBP3 category * Add sort for total plays * Remove extra whitespace and make styling more consistent * Order hearted and queued levels by primary key ID * Fix query without order warnings
This commit is contained in:
parent
de228cb242
commit
0c1e350fa3
106 changed files with 4040 additions and 1183 deletions
|
@ -17,9 +17,8 @@ namespace ProjectLighthouse.Tests.GameApiTests.Unit.Middlewares;
|
|||
[Trait("Category", "Unit")]
|
||||
public class SetLastContactMiddlewareTests
|
||||
{
|
||||
|
||||
[Fact]
|
||||
public async void SetLastContact_ShouldAddLastContact_WhenTokenIsLBP1()
|
||||
public async Task SetLastContact_ShouldAddLastContact_WhenTokenIsLBP1()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -56,7 +55,7 @@ public class SetLastContactMiddlewareTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void SetLastContact_ShouldUpdateLastContact_WhenTokenIsLBP1()
|
||||
public async Task SetLastContact_ShouldUpdateLastContact_WhenTokenIsLBP1()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -106,7 +105,7 @@ public class SetLastContactMiddlewareTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void SetLastContact_ShouldNotAddLastContact_WhenTokenIsNotLBP1()
|
||||
public async Task SetLastContact_ShouldNotAddLastContact_WhenTokenIsNotLBP1()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -146,5 +145,4 @@ public class SetLastContactMiddlewareTests
|
|||
LastContactEntity? lastContactEntity = dbMock.LastContacts.FirstOrDefault();
|
||||
Assert.Null(lastContactEntity);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue