Beispiel #1
0
 public IronController(IronBankEntities context)
 {
     if (context == null)
         throw new ArgumentNullException("IronController: context can not be null.");
     db = context;
     Authentication = new AuthenticationService(db);
 }
Beispiel #2
0
 public TransferManager(IronBankEntities context)
 {
     if (context == null)
         throw new ArgumentNullException("TransferManager: context can not be null.");
     db = context;
     productsManager = new ProductService(db);
     transactionManager = new TransactionService(db);
 }
 public TransactionService(IronBankEntities providedContext)
 {
     generator = new AccountNumberGenerator();
     this.context = providedContext;
 }