Skip to content

Commit

Permalink
Showing 23 changed files with 5 additions and 656 deletions.
23 changes: 0 additions & 23 deletions SeatsioDotNet.Test/Charts/CopyChartToSubaccountTest.cs

This file was deleted.

3 changes: 0 additions & 3 deletions SeatsioDotNet.Test/SeatsioClientTest.cs
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@
using RestSharp.Authenticators;
using SeatsioDotNet.Charts;
using SeatsioDotNet.Events;
using SeatsioDotNet.Subaccounts;
using SeatsioDotNet.Util;

namespace SeatsioDotNet.Test
@@ -24,14 +23,12 @@ public class SeatsioClientTest
};

protected readonly User User;
protected readonly Subaccount Subaccount;
protected readonly SeatsioClient Client;

protected SeatsioClientTest()
{
TestCompany testCompany = CreateTestCompany();
User = testCompany.admin;
Subaccount = testCompany.subaccount;
Client = CreateSeatsioClient(User.SecretKey);
}

19 changes: 0 additions & 19 deletions SeatsioDotNet.Test/Subaccounts/ActivateSubaccountTest.cs

This file was deleted.

20 changes: 0 additions & 20 deletions SeatsioDotNet.Test/Subaccounts/CopyChartToParentTest.cs

This file was deleted.

21 changes: 0 additions & 21 deletions SeatsioDotNet.Test/Subaccounts/CopyChartToSubaccountTest.cs

This file was deleted.

28 changes: 0 additions & 28 deletions SeatsioDotNet.Test/Subaccounts/CreateSubaccountTest.cs

This file was deleted.

18 changes: 0 additions & 18 deletions SeatsioDotNet.Test/Subaccounts/DeactivateSubaccountTest.cs

This file was deleted.

21 changes: 0 additions & 21 deletions SeatsioDotNet.Test/Subaccounts/ListActiveSubaccountsTest.cs

This file was deleted.

83 changes: 0 additions & 83 deletions SeatsioDotNet.Test/Subaccounts/ListAllSubaccountsTest.cs

This file was deleted.

36 changes: 0 additions & 36 deletions SeatsioDotNet.Test/Subaccounts/ListFirstPageOfSubaccountsTest.cs

This file was deleted.

22 changes: 0 additions & 22 deletions SeatsioDotNet.Test/Subaccounts/ListInactiveSubaccountsTest.cs

This file was deleted.

36 changes: 0 additions & 36 deletions SeatsioDotNet.Test/Subaccounts/ListPageOfSubaccountsAfterTest.cs

This file was deleted.

36 changes: 0 additions & 36 deletions SeatsioDotNet.Test/Subaccounts/ListPageOfSubaccountsBeforeTest.cs

This file was deleted.

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions SeatsioDotNet.Test/Subaccounts/RetrieveSubaccountTest.cs

This file was deleted.

29 changes: 0 additions & 29 deletions SeatsioDotNet.Test/Subaccounts/UpdateSubaccountTest.cs

This file was deleted.

5 changes: 1 addition & 4 deletions SeatsioDotNet.Test/User.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
using SeatsioDotNet.Subaccounts;

namespace SeatsioDotNet.Test
namespace SeatsioDotNet.Test
{
public class TestCompany
{
public User admin { get; set; }
public Subaccount subaccount { get; set; }
}

public class User
8 changes: 4 additions & 4 deletions SeatsioDotNet.Test/WorkspaceKeyAuthenticationTest.cs
Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@ public class WorkspaceKeyAuthenticationTest : SeatsioClientTest
[Fact]
public void Test()
{
var subaccount = Client.Subaccounts.Create();
var workspace = Client.Workspaces.Create("some workspace");

var subaccountClient = CreateSeatsioClient(User.SecretKey, subaccount.PublicKey);
var holdToken = subaccountClient.HoldTokens.Create();
var workspaceClient = CreateSeatsioClient(User.SecretKey, workspace.Key);
var holdToken = workspaceClient.HoldTokens.Create();

Assert.Equal(subaccount.PublicKey, holdToken.workspaceKey);
Assert.Equal(workspace.Key, holdToken.workspaceKey);
}
}
}
8 changes: 0 additions & 8 deletions SeatsioDotNet/Charts/Charts.cs
Original file line number Diff line number Diff line change
@@ -98,14 +98,6 @@ public Chart Copy(string chartKey)
return AssertOk(_restClient.Execute<Chart>(restRequest));
}

public Chart CopyToSubaccount(string chartKey, long subaccountId)
{
var restRequest = new RestRequest("/charts/{key}/version/published/actions/copy-to/{subaccountId}", Method.Post)
.AddUrlSegment("key", chartKey)
.AddUrlSegment("subaccountId", subaccountId.ToString());
return AssertOk(_restClient.Execute<Chart>(restRequest));
}

public Chart CopyToWorkspace(string chartKey, string toWorkspaceKey)
{
var restRequest = new RestRequest("/charts/{key}/version/published/actions/copy-to-workspace/{toWorkspaceKey}", Method.Post)
2 changes: 0 additions & 2 deletions SeatsioDotNet/SeatsioClient.cs
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@ public class SeatsioClient
{
public Charts.Charts Charts { get; }
public Events.Events Events { get; }
public Subaccounts.Subaccounts Subaccounts { get; }
public Workspaces.Workspaces Workspaces { get; }
public HoldTokens.HoldTokens HoldTokens { get; }
public EventReports.EventReports EventReports { get; }
@@ -35,7 +34,6 @@ public SeatsioClient(string secretKey, string workspaceKey, string baseUrl)
RestClient = CreateRestClient(secretKey, workspaceKey, baseUrl);
Charts = new Charts.Charts(RestClient);
Events = new Events.Events(RestClient);
Subaccounts = new Subaccounts.Subaccounts(RestClient);
Workspaces = new Workspaces.Workspaces(RestClient);
HoldTokens = new HoldTokens.HoldTokens(RestClient);
EventReports = new EventReports.EventReports(RestClient);
12 changes: 0 additions & 12 deletions SeatsioDotNet/Subaccounts/Subaccount.cs

This file was deleted.

171 changes: 0 additions & 171 deletions SeatsioDotNet/Subaccounts/Subaccounts.cs

This file was deleted.

0 comments on commit 0777562

Please sign in to comment.