Exemplo n.º 1
0
 public static void Seed(PaymentGatewayContext context)
 {
     if (!context.Merchants.Any())
     {
         context.Merchants.Add(new Domain.Merchant(
                                   new Guid("3FA85F64-5717-4562-B3FC-2C963F66AFA6"),
                                   "Amazon",
                                   "SW1 2NH"));
         context.SaveChanges();
     }
 }
 public ChargeRepository(PaymentGatewayContext context,
                         IEncryptionService encryptionService)
 {
     _context           = context ?? throw new ArgumentNullException(nameof(context));
     _encryptionService = encryptionService ?? throw new ArgumentNullException(nameof(encryptionService));
 }