示例#1
0
        public static PaymentsProcessor Create(PWDatabase db, int processingPause)
        {
            if (Processor != null)
            {
                throw new Exception("PaymentProcessor already exists");
            }

            Processor = new PaymentsProcessor(db, processingPause);

            return(Processor);
        }
示例#2
0
 public AccountController()
 {
     this.db   = new PWDatabase();
     this.auth = new AuthContext(this.db);
 }
示例#3
0
 public PaymentStateRepository(PWDatabase db) : base(db)
 {
 }
示例#4
0
 public Repository(PWDatabase db)
 {
     this.db = db;
 }
示例#5
0
 public AuthContext(PWDatabase db)
 {
     this.database = new UnitOfWork(db);
 }
示例#6
0
 private PaymentsProcessor(PWDatabase db, int processingPause)
 {
     this.database        = new UnitOfWork(db);
     this.processingPause = processingPause;
 }
示例#7
0
 public UnitOfWork(PWDatabase db)
 {
     this.db = db;
 }
 public AccountContext(PWDatabase db, int accountId)
 {
     this.database = new UnitOfWork(db);
     this.account  = this.database.AccountRepository.GetById(accountId);
 }
 public AccountContext(PWDatabase db, Account account)
 {
     this.database = new UnitOfWork(db);
     this.account  = account;
 }
示例#10
0
 public AccountRepository(PWDatabase db) : base(db)
 {
 }