public static PaymentsProcessor Create(PWDatabase db, int processingPause) { if (Processor != null) { throw new Exception("PaymentProcessor already exists"); } Processor = new PaymentsProcessor(db, processingPause); return(Processor); }
public AccountController() { this.db = new PWDatabase(); this.auth = new AuthContext(this.db); }
public PaymentStateRepository(PWDatabase db) : base(db) { }
public Repository(PWDatabase db) { this.db = db; }
public AuthContext(PWDatabase db) { this.database = new UnitOfWork(db); }
private PaymentsProcessor(PWDatabase db, int processingPause) { this.database = new UnitOfWork(db); this.processingPause = processingPause; }
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; }
public AccountRepository(PWDatabase db) : base(db) { }