public on_a_blackjacktable() { card_shoe = MockRepository.GenerateStub <ICardShoe>(); playing_positions = MockRepository.GenerateStub <IPlayingPositions>(); table_status = MockRepository.GenerateStub <ITableStatus>(); player = MockRepository.GenerateStub <IPlayer>(); SUT = new BlackJackTable(player, card_shoe, playing_positions, table_status); }
public on_a_blackjacktable() { card_shoe = MockRepository.GenerateStub<ICardShoe>(); playing_positions = MockRepository.GenerateStub<IPlayingPositions>(); table_status = MockRepository.GenerateStub<ITableStatus>(); player = MockRepository.GenerateStub<IPlayer>(); SUT = new BlackJackTable(player, card_shoe, playing_positions, table_status); }
protected void Page_Load(object sender, EventArgs e) { try { //Load the created tables from DB if (!IsPostBack) { this.ITableNumberGV = new MTableNumber(); TL = ITableNumberGV.TableList(); rbtlTableList2.DataValueField = "idTable"; rbtlTableList2.DataTextField = "idTable"; rbtlTableList2.DataSource = TL; rbtlTableList2.DataBind(); //Fill the select (dropDown) with the Table Status created on db this.ITableStatus = new MTableStatus(); sltTableStatus.DataValueField = "description"; sltTableStatus.DataTextField = "idStatus"; this.TS = ITableStatus.TableStatusList(); sltTableStatus.DataSource = TS; sltTableStatus.DataBind(); } } catch (Exception) { throw; } }
private void change_status_to(ITableStatus status) { this.status = status; }
public BlackJackTable(IPlayer player, ICardShoe card_shoe, IPlayingPositions playing_positions, ITableStatus table_status) { id = Guid.NewGuid(); this.player = player; _card_shoe = card_shoe; _playing_positions = playing_positions; change_status_to(table_status); _playing_positions.create_dealers_hand_for(this); }