Example #1
0
 public IEnumerable <BitPoker.Models.Contracts.Table> Get()
 {
     using (BitPoker.Repository.ITableRepository repo = Repository.Factory.GetTableRepository())
     {
         return(repo.All());
     }
 }
Example #2
0
 public BitPoker.Models.Contracts.Table Get(Guid id)
 {
     using (BitPoker.Repository.ITableRepository repo = Repository.Factory.GetTableRepository())
     {
         return(repo.Find(id));
     }
 }
Example #3
0
 public BuyInController()
 {
     this.tableRepo = new Repository.InMemoryTableRepo();
 }
Example #4
0
 public MessageController()
 {
     this.playerRepo = new Repository.InMemoryPlayerRepo();
     this.handRepo   = new Repository.InMemoryHandRepo();
     this.tableRepo  = new Repository.InMemoryTableRepo();
 }
Example #5
0
 public TablesController(BitPoker.Repository.ITableRepository repo)
 {
     this._repo = repo;
 }
Example #6
0
 public TablesController()
 {
     this._repo = Repository.Factory.GetTableRepository();
 }
Example #7
0
 public DealController(BitPoker.Repository.ITableRepository tableRepo, BitPoker.Repository.IHandRepository handRepo)
 {
     this.tableRepo = tableRepo;
     this.handRepo  = handRepo;
 }
Example #8
0
 public DealController()
 {
     this.tableRepo = new Repository.InMemoryTableRepo();
     this.handRepo  = new Repository.InMemoryHandRepo();
 }
Example #9
0
 public TablesController()
 {
     this.TableRepo = new BitPoker.Repository.MockTableRepo();
 }