-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50cc40c
commit 26c10f4
Showing
6 changed files
with
83 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
Btms.Backend.IntegrationTests/DecisionTests/ManyItemTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
using Btms.Common.Extensions; | ||
using Btms.Model; | ||
using Btms.SyncJob; | ||
using Btms.Backend.IntegrationTests.JsonApiClient; | ||
using FluentAssertions; | ||
using System.Net; | ||
using System.Net.Http.Json; | ||
using System.Text; | ||
using System.Text.Json; | ||
using System.Text.Json.Nodes; | ||
using System.Text.Json.Serialization; | ||
using Btms.Backend.IntegrationTests.Extensions; | ||
using Btms.Backend.IntegrationTests.Helpers; | ||
using Btms.Business.Commands; | ||
using Btms.Model.Cds; | ||
using Btms.Model.Ipaffs; | ||
using Btms.Types.Alvs; | ||
using TestDataGenerator.Scenarios; | ||
using Json.More; | ||
using Microsoft.Extensions.Logging; | ||
using TestDataGenerator.Scenarios.ChedP; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
using ImportNotification = Btms.Types.Ipaffs.ImportNotification; | ||
|
||
namespace Btms.Backend.IntegrationTests.DecisionTests; | ||
|
||
[Trait("Category", "Integration")] | ||
public class ManyItemTests(InMemoryScenarioApplicationFactory<CrNoMatchScenarioGenerator> factory, ITestOutputHelper testOutputHelper) | ||
: BaseApiTests(factory, testOutputHelper, "DecisionTests"), IClassFixture<InMemoryScenarioApplicationFactory<CrNoMatchScenarioGenerator>> | ||
{ | ||
|
||
[Fact] | ||
public void ShouldHaveOneChedType() | ||
{ | ||
// Act | ||
var movementResource = Client.AsJsonApiClient() | ||
.Get("api/movements") | ||
// .Data | ||
.GetResourceObjects<Movement>() | ||
.Single() | ||
.Status.ChedTypes!.Count().Should().Be(1); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters