mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
45 lines
1.2 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using System.Threading.Tasks;
|
|
using TestSuite.Fixtures;
|
|
using Xunit;
|
|
|
|
#pragma warning disable SA1300 // Element should begin with upper-case letter
|
|
|
|
namespace TestSuite.ApiTests
|
|
{
|
|
public class PingTests : IClassFixture<CreatedAppFixture>
|
|
{
|
|
public CreatedAppFixture _ { get; }
|
|
|
|
public PingTests(CreatedAppFixture fixture)
|
|
{
|
|
_ = fixture;
|
|
}
|
|
|
|
[Fact]
|
|
public async Task Should_ping_service()
|
|
{
|
|
await _.Ping.GetPingAsync();
|
|
}
|
|
|
|
[Fact]
|
|
public async Task Should_ping_app()
|
|
{
|
|
await _.Ping.GetAppPingAsync(_.AppName);
|
|
}
|
|
|
|
[Fact]
|
|
public async Task Should_get_info()
|
|
{
|
|
var infos = await _.Ping.GetInfoAsync();
|
|
|
|
Assert.NotNull(infos);
|
|
}
|
|
}
|
|
}
|
|
|