public void test_spanish_barcode() { var cfg = new BarcodeConfig() { Name = "Spain", Length = 18, HasCheckDigit = true, //iso, ty, br, voucher Template = "{0:000}{1:00}{2:00000}{3:0000000}", Sample = "724 21 43101 4876719 9", CountryID = new Tuple <int, int>(0, 3), BuzType = new Tuple <int, int>(3, 2), RetailerID = new Tuple <int, int>(5, 5), VoucherID = new Tuple <int, int>(10, 7), }; BarcodeData data = null; cfg.ParseBarcode("724214310148767199", ref data); }
public void Test_BarcodeConfigigurations() { var bg = new BarcodeConfig() { Name = "Default", Length = 19, HasCheckDigit = true, //iso, ty, br, voucher Template = "{0:000}{1:00}{2:000000}{3:00000000}", Sample = "826 20 188025 33359669 9", CountryID = new Tuple <int, int>(0, 3), BuzType = new Tuple <int, int>(3, 2), RetailerID = new Tuple <int, int>(5, 6), VoucherID = new Tuple <int, int>(11, -1), }; BarcodeData data = null; bg.ParseBarcode("001977684056100353", ref data); }