using Centron.BusinessLogic.Sales.Receipts.Internal; using Centron.Tests.EndToEnd.Infrastructure; using Xunit; using Xunit.Abstractions; namespace Centron.Tests.EndToEnd.Tests.ReceiptEsr; public class ReceiptEsrTests : CentronTest { public ReceiptEsrTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } [Fact] public void CreateEsrCodes() { this.Test(1, "111", "222", "333", swap:false); this.Test(2, "111", "222", "333", swap:true); this.Test(3, "12345", "88888", "44444", swap:false); this.Test(4, "45454", "22114", "33333", swap:false); this.Test(5, "12345678", "22222", "33333", swap: true); } private void Test(int step, string bankId, string invoiceNumber, string customerId, bool swap) { var esr = ReceiptEsrBL.BuildEsrReferenceNumber(bankId, invoiceNumber, customerId, swap); this.Verifier.Verify($"Step_{step}", esr); } }