public static BitPoker.Repository.IHandRepository GetHandRepository() { String repoName = System.Configuration.ConfigurationManager.AppSettings["HandRepository"]; if (!String.IsNullOrEmpty(repoName)) { BitPoker.Repository.IHandRepository repo = (BitPoker.Repository.IHandRepository)Activator.CreateInstance(Type.GetType(repoName)); if (repo != null) { return(repo); } else { return(new InMemoryHandRepo()); } } else { return(new InMemoryHandRepo()); } }
public HandController(BitPoker.Repository.IHandRepository repo) { _repo = repo; }
public HandController() { _repo = Repository.Factory.GetHandRepository(); }
public MessageController() { this.playerRepo = new Repository.InMemoryPlayerRepo(); this.handRepo = new Repository.InMemoryHandRepo(); this.tableRepo = new Repository.InMemoryTableRepo(); }
public DeckController() { repo = new BitPoker.Repository.Mocks.HandRepository(); }
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(); }