Skip to content

Commit

Permalink
working on roomhandler tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yucked committed Jun 3, 2024
1 parent 69cf769 commit 90e7d78
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Ankh.Tests/RoomHandlerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@ namespace Ankh.Tests;
public sealed class RoomHandlerTests {
[DataTestMethod]
[DataRow()]
public async Task Test_GetRoomByIdAsync(int roomId) {
Globals.RoomHandler.GetRoomByIdAsync(roomId);
public async Task Test_GetRoomByIdAsync(int userId, int roomId) {
//Globals.RoomHandler.GetRoomByIdAsync(userId, roomId);
}

[DataTestMethod]
[DataRow("Foo", "Bar", "Query")]
public async Task Test_SearchRoomsAsync(string u, string p, string kw) {
var userSauce = await Globals.UserHandler.LoginAsync(u, p);
Assert.IsNotNull(userSauce);
Assert.IsNotNull(userSauce.Auth);

await Globals.RoomHandler.SearchRoomsAsync(userSauce, q => {
q.Keywords = kw;
});
}
}

0 comments on commit 90e7d78

Please sign in to comment.