public async Task Like_SuccessStatusCode() { // Arrange var request = $"{ _baseUrl}/like/{_newsId}"; // Act var response = await AdminClient.PutAsync(request, null); // Assert response.EnsureSuccessStatusCode(); }
public async Task Edit_SuccessStatusCode() { // Arrange var request = $"{ _baseUrl}/{_newsId}"; var news = new NewsFormDataBuilder() .WithDefaultTitle() .WithDefaultText() .WithDefaultImage("NewMainImage") .Build(); // Act var response = await AdminClient.PutAsync(request, news); // Assert response.EnsureSuccessStatusCode(); }