Skip to content

Commit

Permalink
fix record tests 2
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeFZ committed Jul 24, 2023
1 parent 3ed5ef9 commit df6bc2d
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions DragaliaAPI.Test/Features/Dungeon/DungeonRecordControllerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@ public async Task QuestIdAndPartyDataAppearInResponse()
)
.ReturnsAsync(new List<AtgenDropAll>());

DungeonRecordRecordRequest request = new() { dungeon_key = dungeonKey };
DungeonRecordRecordRequest request =
new()
{
dungeon_key = dungeonKey,
play_record = new PlayRecord() { is_clear = 1 }
};

ActionResult<DragaliaResponse<object>> response = await this.dungeonRecordController.Record(
request
Expand Down Expand Up @@ -262,7 +267,7 @@ public async Task BestClearDisplaysTimeAsBestTime()
new()
{
dungeon_key = dungeonKey,
play_record = new() { time = clearTime }
play_record = new() { time = clearTime, is_clear = 1 }
};

ActionResult<DragaliaResponse<object>> response = await this.dungeonRecordController.Record(
Expand Down Expand Up @@ -357,7 +362,7 @@ public async Task SlowerClearDoesNotDisplayTimeAsBestTime()
new()
{
dungeon_key = dungeonKey,
play_record = new() { time = clearTime }
play_record = new() { time = clearTime, is_clear = 1 }
};

ActionResult<DragaliaResponse<object>> response = await this.dungeonRecordController.Record(
Expand Down Expand Up @@ -458,7 +463,12 @@ public async Task FirstClearFullClearGivesAllMissions()
)
.ReturnsAsync(new List<AtgenDropAll>());

DungeonRecordRecordRequest request = new() { dungeon_key = dungeonKey };
DungeonRecordRecordRequest request =
new()
{
dungeon_key = dungeonKey,
play_record = new PlayRecord() { is_clear = 1 }
};

ActionResult<DragaliaResponse<object>> response = await this.dungeonRecordController.Record(
request
Expand Down Expand Up @@ -568,7 +578,12 @@ public async Task NotFirstClearFullClearGivesAllMissionsButNotFirstClear()
)
.ReturnsAsync(new List<AtgenDropAll>());

DungeonRecordRecordRequest request = new() { dungeon_key = dungeonKey };
DungeonRecordRecordRequest request =
new()
{
dungeon_key = dungeonKey,
play_record = new PlayRecord() { is_clear = 1 }
};

ActionResult<DragaliaResponse<object>> response = await this.dungeonRecordController.Record(
request
Expand Down Expand Up @@ -681,7 +696,12 @@ public async Task VariousPreviousMissionClearStatusesGiveCorrectMissions(bool[]
)
.ReturnsAsync(new List<AtgenDropAll>());

DungeonRecordRecordRequest request = new() { dungeon_key = dungeonKey };
DungeonRecordRecordRequest request =
new()
{
dungeon_key = dungeonKey,
play_record = new PlayRecord() { is_clear = 1 }
};

ActionResult<DragaliaResponse<object>> response = await this.dungeonRecordController.Record(
request
Expand Down Expand Up @@ -780,7 +800,12 @@ public async Task AllMissionsPreviouslyClearedDoesntGiveRewards()
)
.ReturnsAsync(new List<AtgenDropAll>());

DungeonRecordRecordRequest request = new() { dungeon_key = dungeonKey };
DungeonRecordRecordRequest request =
new()
{
dungeon_key = dungeonKey,
play_record = new PlayRecord() { is_clear = 1 }
};

ActionResult<DragaliaResponse<object>> response = await this.dungeonRecordController.Record(
request
Expand Down

0 comments on commit df6bc2d

Please sign in to comment.