Skip to content

Commit

Permalink
DEV-45324: Addinf new Pruefis to const strings (#146)
Browse files Browse the repository at this point in the history
* Adding new Pruefis to PruefiEnum

* add new test item for S1.1a
  • Loading branch information
hamidhajiparvaneh authored Feb 1, 2024
1 parent 395643c commit 8a5bbec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions EDILibrary/Constants/German/Pruefidentifikatoren.cs
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,11 @@ public static class Pruefidentifikatoren
public const string UTILMD_55232_SdaeStrom_NichtBilarelAnfrageAbrechnungBlindarbeitAnLf = "55232";
public const string UTILMD_55233_SdaeStrom_AntwortAufAnfrageAbrechnungBlindarbeitAnLf = "55233";
public const string UTILMD_55234_SdaeStrom_AblehnungAnfrageAbrechnungBlindarbeitAnLf = "55234";
public const string UTILMD_55557_SdaeStrom_AenderungVonMSBAbrechnungsdaten = "55557";
public const string UTILMD_55558_SdaeStrom_AntwortAufAenderungVonMSBAbrechnungsdaten = "55558";
public const string UTILMD_55559_SdaeStrom_AnfrageVonMSBAbrechnungsdaten = "55559";
public const string UTILMD_55560_SdaeStrom_AntwortAufAnfrageVonMSBAbrechnungsdaten = "55560";
public const string UTILMD_55561_SdaeStrom_AblehnungDerAnfrageVonMSBAbrechnungsdaten = "55561";
public const string UTILMD_55235_Mabis_ZuordnungZpDerNgzZurNzr = "55235";
public const string UTILMD_55236_Mabis_BeendigungZuordnungZpDerNgzZurNzr = "55236";
public const string UTILMD_55237_Mabis_AntwortAufZuordnung_BeendigungZuordnungZpDerNgzZurNzr = "55237";
Expand Down
3 changes: 3 additions & 0 deletions EDILibraryTests/EDIHelperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public void TestNormalizeEdiHeader(string input, string expectedResult)
[DataRow(
"UNA:+.? 'UNB+UNOC:3+123456789012345:500+123456789:500+210326:1553+WIM00000000901'UNH+WIM00000000901+UTILMD:D:11A:UN:S1.1'BGM+E03+WIM00000000901'DTM+137:202103261553:203'NAD+MS+123456789012345::293'CTA+IC+:Max Mustermann'COM+max@mustermann.de:EM'NAD+MR+123456789::293'IDE+24+WIMP0000000459'DTM+92:20210401:102'DTM+157:20210401:102'STS+7++ZE8'LOC+172+41234567896'RFF+Z13:11116'SEQ+Z01'CCI+Z30++Z06'",
"{\"Format\":\"UTILMD\", \"Nachrichtenversion\":\"D\",\"Version\":\"S1.1\", \"Sender\":{\"CodeList\":\"500\",\"ID\":\"123456789012345\"}, \"Freigabenummer\":\"11A\", \"Empfänger\":{\"CodeList\":\"500\",\"ID\":\"123456789\"}, \"ID\":\"WIM00000000901\"}")]
[DataRow(
"UNA:+.? 'UNB+UNOC:3+123456789012345:500+123456789:500+210326:1553+WIM00000000901'UNH+WIM00000000901+UTILMD:D:11A:UN:S1.1a'BGM+E03+WIM00000000901'DTM+137:202103261553:203'NAD+MS+123456789012345::293'CTA+IC+:Max Mustermann'COM+max@mustermann.de:EM'NAD+MR+123456789::293'IDE+24+WIMP0000000459'DTM+92:20210401:102'DTM+157:20210401:102'STS+7++ZE8'LOC+172+41234567896'RFF+Z13:11116'SEQ+Z01'CCI+Z30++Z06'",
"{\"Format\":\"UTILMD\", \"Nachrichtenversion\":\"D\",\"Version\":\"S1.1a\", \"Sender\":{\"CodeList\":\"500\",\"ID\":\"123456789012345\"}, \"Freigabenummer\":\"11A\", \"Empfänger\":{\"CodeList\":\"500\",\"ID\":\"123456789\"}, \"ID\":\"WIM00000000901\"}")]

public void TestGetEdiFileInfo(string input, string expectedOutput)
{
Expand Down

0 comments on commit 8a5bbec

Please sign in to comment.