Skip to content

Commit

Permalink
Format code and fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Jun 18, 2020
1 parent 3cd7376 commit 11af0eb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion RingCentral.Tests/AuthorizationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ await rc.Authorize(
Environment.GetEnvironmentVariable("RINGCENTRAL_PASSWORD")
);

// suppose data is read form file
// suppose data is read from file
var data = JsonConvert.SerializeObject(rc.token);

// suppose token is null (not logged in)
Expand Down
24 changes: 13 additions & 11 deletions RingCentral.Tests/GlipExportTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using System.IO;
using System.Threading.Tasks;
using Xunit;

namespace RingCentral.Tests
Expand All @@ -19,17 +21,17 @@ await rc.Authorize(
Environment.GetEnvironmentVariable("RINGCENTRAL_EXTENSION"),
Environment.GetEnvironmentVariable("RINGCENTRAL_PASSWORD")
);
// // can only be done once per day
// var r = await rc.Restapi().Glip().DataExport().Post(new CreateDataExportTaskRequest());
// Assert.Equal("Accepted", r.status);
//
// await Task.Delay(60000);
// var r2 = await rc.Restapi().Glip().DataExport(r.id).Get();
// Assert.Equal("Completed", r2.status);
//
// var content = await rc.Get<byte[]>(r2.result[0].uri);
// Assert.True(content.Length > 0);
// File.WriteAllBytes("test.zip", content);
// // can only be done once per day
// var r = await rc.Restapi().Glip().DataExport().Post(new CreateDataExportTaskRequest());
// Assert.Equal("Accepted", r.status);
//
// await Task.Delay(60000);
// var r2 = await rc.Restapi().Glip().DataExport(r.id).Get();
// Assert.Equal("Completed", r2.status);
//
// var content = await rc.Get<byte[]>(r2.datasets[0].uri);
// Assert.True(content.Length > 0);
// File.WriteAllBytes("test.zip", content);
}
}

Expand Down
3 changes: 2 additions & 1 deletion RingCentral.Tests/MeetingRecordingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ await rc.Authorize(
Assert.NotNull(str);
}
catch (RestException re)
{ // todo: https://jira.ringcentral.com/browse/PLA-49859
{
// todo: https://jira.ringcentral.com/browse/PLA-49859
Assert.Equal(HttpStatusCode.Forbidden, re.HttpResponseMessage.StatusCode);
}
}
Expand Down
4 changes: 2 additions & 2 deletions RingCentral.Tests/ScheduleMeetingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ await rc.Authorize(
schedule = new MeetingScheduleResource
{
durationInMinutes = 30,
timeZone = new TimezoneResource{ id = "58" },
timeZone = new TimezoneResource {id = "58"},
// startTime = DateTime.UtcNow.AddDays(10).ToString("o") // does not work, because of datetime format
startTime = "2030-05-20T22:21:25Z"
}
};
var meetingInfo = await rc.Restapi().Account().Extension().Meeting().Post(meetingRequestResource);
Assert.NotNull(meetingInfo);

await rc.Restapi().Account().Extension().Meeting(meetingInfo.id).Delete();
}
}
Expand Down

0 comments on commit 11af0eb

Please sign in to comment.