Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions exercise.tests/IntegrationTests/BaseIntegrationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ FROM users u
*/
protected const string TeacherEmail = "anna.gruber160@example.com"; // has post id 34,35 and comment id 37
protected const string TeacherPassword = "Neidintulling!l33t";
protected const int TeacherId = 160;
protected const int TeacherPostID = 34;
protected const int TeacherCommentID = 37;

protected const string StudentEmail1 = "jan.larsen9@example.com"; //id 232, has post id 57, 58 and comment id 2
protected const string StudentPassword1 = "SuperHash!4";
protected const int StudentId1 = 9;
protected const int StudentPostID1 = 57;
protected const int StudentCommentID1 = 2;

Expand Down Expand Up @@ -132,6 +134,11 @@ protected async Task<HttpResponseMessage> SendAuthenticatedPutAsync<T>(string en
return await SendAuthenticatedRequestAsync(HttpMethod.Put, endpoint, token, body);
}

protected async Task<HttpResponseMessage> SendAuthenticatedPostAsync(string endpoint, string token)
{
return await SendAuthenticatedRequestAsync<object>(HttpMethod.Post, endpoint, token);
}

protected async Task<HttpResponseMessage> SendAuthenticatedDeleteAsync(string endpoint, string token)
{
return await SendAuthenticatedRequestAsync<object>(HttpMethod.Delete, endpoint, token);
Expand Down
Loading
Loading