public IEnumerable <BitPoker.Models.Contracts.Table> Get() { using (BitPoker.Repository.ITableRepository repo = Repository.Factory.GetTableRepository()) { return(repo.All()); } }
public BitPoker.Models.Contracts.Table Get(Guid id) { using (BitPoker.Repository.ITableRepository repo = Repository.Factory.GetTableRepository()) { return(repo.Find(id)); } }
public BuyInController() { this.tableRepo = new Repository.InMemoryTableRepo(); }
public MessageController() { this.playerRepo = new Repository.InMemoryPlayerRepo(); this.handRepo = new Repository.InMemoryHandRepo(); this.tableRepo = new Repository.InMemoryTableRepo(); }
public TablesController(BitPoker.Repository.ITableRepository repo) { this._repo = repo; }
public TablesController() { this._repo = Repository.Factory.GetTableRepository(); }
public DealController(BitPoker.Repository.ITableRepository tableRepo, BitPoker.Repository.IHandRepository handRepo) { this.tableRepo = tableRepo; this.handRepo = handRepo; }
public DealController() { this.tableRepo = new Repository.InMemoryTableRepo(); this.handRepo = new Repository.InMemoryHandRepo(); }
public TablesController() { this.TableRepo = new BitPoker.Repository.MockTableRepo(); }