Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed Oct 29, 2019
1 parent 9d9a00f commit c62bd37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SeatsioDotNet.Test/SeatsioClientTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.IO;
using RestSharp;
using RestSharp.Authenticators;
using SeatsioDotNet.Util;

namespace SeatsioDotNet.Test
Expand Down Expand Up @@ -53,9 +54,9 @@ protected string CreateTestChartWithErrors()
protected string CreateTestChartFromJson(String json)
{
var restClient = new RestClient(BaseUrl);
restClient.Authenticator = new HttpBasicAuthenticator(User.SecretKey, null);
var chartKey = Guid.NewGuid().ToString();
var request = new RestRequest("/system/public/{designerKey}/charts/{chartKey}", Method.POST)
.AddUrlSegment("designerKey", User.DesignerKey)
var request = new RestRequest("/system/public/charts/{chartKey}", Method.POST)
.AddUrlSegment("chartKey", chartKey)
.AddParameter("application/json", json, ParameterType.RequestBody);
RestUtil.AssertOk(restClient.Execute<object>(request));
Expand Down

0 comments on commit c62bd37

Please sign in to comment.