using Centron.Tests.EndToEnd.Infrastructure; using Xunit.Abstractions; namespace Centron.Tests.EndToEnd.TicketTests.Ticket139086; public class Ticket139086Tests : EndToEndTest { public Ticket139086Tests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } public const int ArticleI3D = 114; public const int OrderItemI3D = 536; public override void Execute() { // In this ticket the customer had some problems with the commissioning module, and also the commissioning-icon in orders // The problem was that we didn't handle some articles correctly // The articles had "barcode required" to false, but some barcodes assigned to them this.PrepareDatabase(); // The order-item has 4 barcodes assigned, so count should be 4 this.Verifier.VerifyTable("CommissionQuantity", "cvw_ConsignmentArticleQuantity", $"OrderPosI3D = {OrderItemI3D}"); } private void PrepareDatabase() { this.Sql($"UPDATE dbo.ARTIK SET BarcodeScanen = 0 WHERE I3D = {ArticleI3D}"); } }