Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeFZ committed Jul 22, 2023
1 parent 4e41bfe commit 40c6036
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions DragaliaAPI.Test/Controllers/DungeonRecordControllerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ public async Task QuestIdAndPartyDataAppearInResponse()
)
.ReturnsAsync((new List<AtgenScoreMissionSuccessList>(), 0));

this.mockQuestCompletionService
.Setup(x => x.GrantFirstClearRewards(questId))
.ReturnsAsync(new List<AtgenFirstClearSet>());

this.mockEventDropService
.Setup(x => x.ProcessEventPassiveDrops(It.IsAny<QuestData>()))
.ReturnsAsync(new List<AtgenEventPassiveUpList>());
Expand Down Expand Up @@ -244,6 +248,10 @@ public async Task BestClearDisplaysTimeAsBestTime()
)
.ReturnsAsync((new List<AtgenScoreMissionSuccessList>(), 0));

this.mockQuestCompletionService
.Setup(x => x.GrantFirstClearRewards(questId))
.ReturnsAsync(new List<AtgenFirstClearSet>());

this.mockEventDropService
.Setup(x => x.ProcessEventPassiveDrops(It.IsAny<QuestData>()))
.ReturnsAsync(new List<AtgenEventPassiveUpList>());
Expand Down Expand Up @@ -327,6 +335,10 @@ public async Task SlowerClearDoesNotDisplayTimeAsBestTime()
)
);

this.mockQuestCompletionService
.Setup(x => x.GrantFirstClearRewards(questId))
.ReturnsAsync(new List<AtgenFirstClearSet>());

this.mockQuestCompletionService
.Setup(
x =>
Expand Down Expand Up @@ -434,6 +446,10 @@ public async Task FirstClearFullClearGivesAllMissions()
)
.ReturnsAsync((new List<AtgenScoreMissionSuccessList>(), 0));

this.mockQuestCompletionService
.Setup(x => x.GrantFirstClearRewards(questId))
.ReturnsAsync(firstClearReward);

this.mockEventDropService
.Setup(x => x.ProcessEventPassiveDrops(It.IsAny<QuestData>()))
.ReturnsAsync(new List<AtgenEventPassiveUpList>());
Expand Down

0 comments on commit 40c6036

Please sign in to comment.