Skip to content
Permalink
Browse files

Sample for apps.

  • Loading branch information
SebastianStehle committed Nov 15, 2019
1 parent 6c7a2ec commit 7880ad265658b0d8930843e1436be314fd3bc5d0
Showing with 11 additions and 0 deletions.
  1. +11 −0 csharp/Squidex.ClientLibrary/Squidex.ClientLibrary.Tests/ManagementTests.cs
@@ -6,6 +6,7 @@
// ==========================================================================

using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Squidex.ClientLibrary.Management;
using Xunit;
@@ -24,6 +25,16 @@ public ManagementTests()
appsClient = TestClient.ClientManager.CreateAppsClient();
}

[Fact]
public async Task Should_query_apps()
{
await appsClient.PostAppAsync(new CreateAppDto { Name = "temporary" });

var apps = await appsClient.GetAppsAsync();

Assert.Equal("temporary", apps.FirstOrDefault()?.Name);
}

[Fact]
public async Task Should_query_contributors()
{

0 comments on commit 7880ad2

Please sign in to comment.
You can’t perform that action at this time.