Init
This commit is contained in:
25
Prefab.Tests/Integration/Web/Nav/NavMenuShould.cs
Normal file
25
Prefab.Tests/Integration/Web/Nav/NavMenuShould.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Net.Http.Json;
|
||||
using Prefab.Tests.Infrastructure;
|
||||
using Prefab.Web.Client.Models.Shared;
|
||||
using Shouldly;
|
||||
|
||||
namespace Prefab.Tests.Integration.Web.Nav;
|
||||
|
||||
[Trait(TraitName.Category, TraitCategory.Integration)]
|
||||
public sealed class NavMenuShould(PrefabCompositeFixture_Ephemeral fixture)
|
||||
: IClassFixture<PrefabCompositeFixture_Ephemeral>
|
||||
{
|
||||
[Fact]
|
||||
public async Task ReturnNavigationColumnsFromBff()
|
||||
{
|
||||
var cancellationToken = TestContext.Current.CancellationToken;
|
||||
var client = fixture.CreateHttpClientForWeb();
|
||||
|
||||
var result = await client.GetFromJsonAsync<Result<NavMenuModel>>("/bff/nav-menu/2", cancellationToken);
|
||||
|
||||
result.ShouldNotBeNull();
|
||||
result!.IsSuccess.ShouldBeTrue(result.Problem?.Detail);
|
||||
result.Value.ShouldNotBeNull();
|
||||
result.Value!.Columns.ShouldNotBeNull();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user