Template
chore: deploy initial code base
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
using Strata.ContinuousImprovement.Api.Test.Integration.Info;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Net.Http.Json;
|
||||
|
||||
namespace Strata.ContinuousImprovement.Api.Test.Integration.Tests
|
||||
{
|
||||
[ExcludeFromCodeCoverage]
|
||||
[TestFixture(Category = "Integration")]
|
||||
public class TestSecuirtyController : ApiTestBase
|
||||
{
|
||||
[Test]
|
||||
public async Task TestSecurityIdenties()
|
||||
{
|
||||
// arrange
|
||||
var request = new HttpRequestMessage(HttpMethod.Get, "/api/v1/security/identities");
|
||||
|
||||
// act
|
||||
var response = await HttpClient.SendAsync(request);
|
||||
var securityInfos = await response.Content.ReadFromJsonAsync<IEnumerable<SecurityInfo>>();
|
||||
|
||||
// assert
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
response.AssertIsValid();
|
||||
Assert.That(securityInfos, Is.Not.Null.And.Not.Empty);
|
||||
Assert.That(securityInfos.Any(s => s.Title == "Administrator, CCI"), Is.True);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user