예제 #1
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="model">Card DGI model.</param>
 /// <param name="data">Card data.</param>
 /// <param name="issuerContext"></param>
 /// <param name="iccContext"></param>
 public DgiBuilder(EmvPersonalizationModel model, EmvPersonalizationData data, EmvIssuerContext issuerContext, EmvIccContext iccContext)
 {
     this.data          = data;
     this.model         = model;
     this.issuerContext = issuerContext;
     this.iccContext    = iccContext;
 }
예제 #2
0
        public DgiBuilderUnitTest()
        {
            var path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            model    = Path.Combine(path, @"Personalization\emv-card-model.json").CreateFromJsonFile <EmvPersonalizationModel>();
            data     = Path.Combine(path, @"Personalization\emv-card-data.json").CreateFromJsonFile <EmvPersonalizationData>();
            tagModel = TagJson.CreateFromJsonString <TagModel>();
        }