|
1 | 1 | using IdParser.Core.Constants; |
2 | | -using Xunit; |
3 | | -using Xunit.Abstractions; |
4 | 2 |
|
5 | 3 | namespace IdParser.Core.Test; |
6 | 4 |
|
7 | 5 | public class DriversLicenseTests : BaseTest |
8 | 6 | { |
9 | | - public DriversLicenseTests(ITestOutputHelper output) |
10 | | - : base(output) |
11 | | - { |
12 | | - } |
13 | | - |
14 | | - |
15 | 7 | [Fact] |
16 | 8 | public void TestMA2009License() |
17 | 9 | { |
@@ -2193,7 +2185,7 @@ public void TestKSLicense() |
2193 | 2185 | Sex = FV<Sex?>(SubfileElementIds.Sex, Sex.Male), |
2194 | 2186 | EyeColor = FV<EyeColor?>(SubfileElementIds.EyeColor, EyeColor.Green), |
2195 | 2187 | Height = FV<Height?>(SubfileElementIds.Height, new Height(totalInches: 71)), |
2196 | | - |
| 2188 | + |
2197 | 2189 | IdNumber = FV(SubfileElementIds.IdNumber, "K04-76-5990"), |
2198 | 2190 | AAMVAVersionNumber = FV(null, AAMVAVersion.AAMVA2016), |
2199 | 2191 |
|
@@ -2332,7 +2324,7 @@ public void TestHILicense() |
2332 | 2324 | EyeColor = FV<EyeColor?>(SubfileElementIds.EyeColor, EyeColor.Blue), |
2333 | 2325 | HairColor = FV<HairColor?>(SubfileElementIds.EyeColor, HairColor.Blond), |
2334 | 2326 | Height = FV<Height?>(SubfileElementIds.Height, new Height(totalInches: 72)), |
2335 | | - |
| 2327 | + |
2336 | 2328 | IdNumber = FV(SubfileElementIds.IdNumber, "H01387330"), |
2337 | 2329 | AAMVAVersionNumber = FV(null, AAMVAVersion.AAMVA2009), |
2338 | 2330 |
|
@@ -2511,7 +2503,7 @@ public void TestPELicense() |
2511 | 2503 | Sex = FV<Sex?>(SubfileElementIds.Sex, Sex.Female), |
2512 | 2504 | EyeColor = FV<EyeColor?>(SubfileElementIds.EyeColor, EyeColor.Blue), |
2513 | 2505 | Height = FV<Height?>(SubfileElementIds.Height, new Height(centimeters: 157)), |
2514 | | - |
| 2506 | + |
2515 | 2507 | IdNumber = FV(SubfileElementIds.IdNumber, "247725"), |
2516 | 2508 | AAMVAVersionNumber = FV(null, AAMVAVersion.AAMVA2016), |
2517 | 2509 |
|
@@ -2615,7 +2607,7 @@ public void TestNDLicense() |
2615 | 2607 | Sex = FV<Sex?>(SubfileElementIds.Sex, Sex.Male), |
2616 | 2608 | EyeColor = FV<EyeColor?>(SubfileElementIds.EyeColor, EyeColor.Blue), |
2617 | 2609 | Height = FV<Height?>(SubfileElementIds.Height, new Height(totalInches: 74)), |
2618 | | - |
| 2610 | + |
2619 | 2611 | IdNumber = FV(SubfileElementIds.IdNumber, "RUN812345"), |
2620 | 2612 | AAMVAVersionNumber = FV(null, AAMVAVersion.AAMVA2013), |
2621 | 2613 |
|
@@ -2671,7 +2663,7 @@ public void TestCTLicenseUndefinedCharacters() |
2671 | 2663 | Sex = FV<Sex?>(SubfileElementIds.Sex, Sex.Female), |
2672 | 2664 | EyeColor = FV<EyeColor?>(SubfileElementIds.EyeColor, EyeColor.Brown), |
2673 | 2665 | Height = FV<Height?>(SubfileElementIds.Height, new Height(totalInches: 67)), |
2674 | | - |
| 2666 | + |
2675 | 2667 | IdNumber = FV(SubfileElementIds.IdNumber, "123456780"), |
2676 | 2668 | AAMVAVersionNumber = FV(null, AAMVAVersion.AAMVA2016), |
2677 | 2669 |
|
@@ -2832,7 +2824,7 @@ public void TestMSLicense() |
2832 | 2824 | Sex = FV<Sex?>(SubfileElementIds.Sex, Sex.Male), |
2833 | 2825 | EyeColor = FV<EyeColor?>(SubfileElementIds.EyeColor, EyeColor.Blue), |
2834 | 2826 | Height = FV<Height?>(SubfileElementIds.Height, new Height(totalInches: 70)), |
2835 | | - |
| 2827 | + |
2836 | 2828 | IdNumber = FV(SubfileElementIds.IdNumber, "800448123"), |
2837 | 2829 | AAMVAVersionNumber = FV(null, AAMVAVersion.AAMVA2013), |
2838 | 2830 |
|
@@ -2946,7 +2938,7 @@ public void TestLeadingWhitespaceLicense() |
2946 | 2938 | DateOfBirth = FV<DateTime?>(SubfileElementIds.DateOfBirth, new DateTime(1939, 12, 7)), |
2947 | 2939 | Sex = FV<Sex?>(SubfileElementIds.Sex, Sex.Male), |
2948 | 2940 | Height = FV<Height?>(SubfileElementIds.Height, new Height(totalInches: 71)), |
2949 | | - |
| 2941 | + |
2950 | 2942 | IdNumber = FV(SubfileElementIds.IdNumber, "S58239477"), |
2951 | 2943 | AAMVAVersionNumber = FV(null, AAMVAVersion.AAMVA2009), |
2952 | 2944 |
|
@@ -3031,7 +3023,7 @@ public void TestCTLicenseSuffix() |
3031 | 3023 | Sex = FV<Sex?>(SubfileElementIds.Sex, Sex.Male), |
3032 | 3024 | EyeColor = FV<EyeColor?>(SubfileElementIds.EyeColor, EyeColor.Green), |
3033 | 3025 | Height = FV<Height?>(SubfileElementIds.Height, new Height(feet: 6, inches: 0)), |
3034 | | - |
| 3026 | + |
3035 | 3027 | IdNumber = FV(SubfileElementIds.IdNumber, "227881513"), |
3036 | 3028 | AAMVAVersionNumber = FV(null, AAMVAVersion.AAMVA2000), |
3037 | 3029 |
|
@@ -3115,7 +3107,7 @@ public void TestNBLicense() |
3115 | 3107 | DateOfBirth = FV<DateTime?>(SubfileElementIds.DateOfBirth, new DateTime(1962, 8, 8)), |
3116 | 3108 | Sex = FV<Sex?>(SubfileElementIds.Sex, Sex.Female), |
3117 | 3109 | Height = FV<Height?>(SubfileElementIds.Height, new Height(centimeters: 168)), |
3118 | | - |
| 3110 | + |
3119 | 3111 | IdNumber = FV(SubfileElementIds.IdNumber, "1234567"), |
3120 | 3112 | AAMVAVersionNumber = FV(null, AAMVAVersion.AAMVA2003), |
3121 | 3113 |
|
@@ -3156,7 +3148,7 @@ public void TestWYLicense() |
3156 | 3148 | EyeColor = FV<EyeColor?>(SubfileElementIds.EyeColor, EyeColor.Blue), |
3157 | 3149 | HairColor = FV<HairColor?>(SubfileElementIds.EyeColor, HairColor.Blond), |
3158 | 3150 | Height = FV<Height?>(SubfileElementIds.Height, new Height(totalInches: 69)), |
3159 | | - |
| 3151 | + |
3160 | 3152 | IdNumber = FV(SubfileElementIds.IdNumber, "123456-789"), |
3161 | 3153 | AAMVAVersionNumber = FV(null, AAMVAVersion.AAMVA2009), |
3162 | 3154 |
|
|
0 commit comments