private static void SeedAvailableBanks(CentralApiDbContext dbContext)
 {
     if (!dbContext.Banks.Any())
     {
         dbContext.AddRange(
             new Bank
         {
             Location  = "Bulgaria",
             Name      = "Bank system",
             SwiftCode = "ABC",
             ApiKey    =
                 "<RSAKeyValue><Modulus>uBJGDt7UVg068eAXtaJ8wxbTLtxJWubChoTCCljt4t8eCcUQTjbVjmiX4n9q01PyfP3Xe2MqKx0HhSygSQr4GTsPhUo44EEJr9E6ZgAjQcBJTbRop4i06BFk+u0x0P/9nZtjQQqFhKrTdVPP9rSc8CYYDsEVzsQTtjKZdtUkPFITfz6fwJHQm2Zswqwu9sSlIIwknz0jKG7lnbEwxrqQy57jjxM7ZujYCop+N20KvBIHLquuH3wkTIxmj4nZLscYBbAE7J4JhuHVE/fCJFIA+M9JgKVvEHeC5HIqshMSaAGRv9Th6HHk0v4QFm3NdpZsVf2Qhu0iOap3fHHoAypFZQ==</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>",
             ApiAddress     = "https://localhost:56013/api/ReceiveMoneyTransfers",
             PaymentUrl     = "https://localhost:56013/pay",
             CardPaymentUrl = "https://localhost:56013/api/cardPayments",
             BankIdentificationCardNumbers = "101"
         }
             );
         dbContext.SaveChanges();
     }
 }
Beispiel #2
0
 protected BaseService(CentralApiDbContext context)
 => this.Context = context;
Beispiel #3
0
 public BanksService(CentralApiDbContext context)
     : base(context)
 {
 }
Beispiel #4
0
 public BanksService(CentralApiDbContext context, IMapper mapper)
     : base(context)
     => this.mapper = mapper;