From 40c6036e61b716208dbd019e7ced25b28fa447c0 Mon Sep 17 00:00:00 2001 From: LukeFZ <17146677+LukeFZ@users.noreply.github.com> Date: Sat, 22 Jul 2023 05:10:37 +0200 Subject: [PATCH] fix test --- .../Controllers/DungeonRecordControllerTest.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/DragaliaAPI.Test/Controllers/DungeonRecordControllerTest.cs b/DragaliaAPI.Test/Controllers/DungeonRecordControllerTest.cs index 481473a90..72ecb230d 100644 --- a/DragaliaAPI.Test/Controllers/DungeonRecordControllerTest.cs +++ b/DragaliaAPI.Test/Controllers/DungeonRecordControllerTest.cs @@ -153,6 +153,10 @@ public async Task QuestIdAndPartyDataAppearInResponse() ) .ReturnsAsync((new List(), 0)); + this.mockQuestCompletionService + .Setup(x => x.GrantFirstClearRewards(questId)) + .ReturnsAsync(new List()); + this.mockEventDropService .Setup(x => x.ProcessEventPassiveDrops(It.IsAny())) .ReturnsAsync(new List()); @@ -244,6 +248,10 @@ public async Task BestClearDisplaysTimeAsBestTime() ) .ReturnsAsync((new List(), 0)); + this.mockQuestCompletionService + .Setup(x => x.GrantFirstClearRewards(questId)) + .ReturnsAsync(new List()); + this.mockEventDropService .Setup(x => x.ProcessEventPassiveDrops(It.IsAny())) .ReturnsAsync(new List()); @@ -327,6 +335,10 @@ public async Task SlowerClearDoesNotDisplayTimeAsBestTime() ) ); + this.mockQuestCompletionService + .Setup(x => x.GrantFirstClearRewards(questId)) + .ReturnsAsync(new List()); + this.mockQuestCompletionService .Setup( x => @@ -434,6 +446,10 @@ public async Task FirstClearFullClearGivesAllMissions() ) .ReturnsAsync((new List(), 0)); + this.mockQuestCompletionService + .Setup(x => x.GrantFirstClearRewards(questId)) + .ReturnsAsync(firstClearReward); + this.mockEventDropService .Setup(x => x.ProcessEventPassiveDrops(It.IsAny())) .ReturnsAsync(new List());