public static X9Record GetObjectFor(XRecord record) { X9Record ret; switch (record.TypeId) { case "01": ret = new R01(); break; case "10": ret = new R10(); break; case "20": ret = new R20(); break; case "25": ret = new R25(); break; case "26": ret = new R26(); break; case "50": ret = new R50(); break; case "52": ret = new R52(); break; case "61": ret = new R61(); break; case "70": ret = new R70(); break; case "90": ret = new R90(); break; case "99": ret = new R99(); break; default: ret = new Unknown(); break; } return(ret); }
public R50RecordTests() { var record = new XRecord("ImageViewDetailRecord", "50"); var meta = Builder.GetMeta()[record]; _data = Builder.GetTestStringFor(meta); _sut = new R50(); _sut.SetData(_data); }