Exemplo n.º 1
0
        public String Get(Guid tableId)
        {
            var table = TableRepo.Find(tableId);

            if (table != null)
            {
                return(table.GetScriptAddress());
            }
            else
            {
                throw new ArgumentException("Table not found");
            }
        }
Exemplo n.º 2
0
        private Models.Messages.ActionMessageResponse ProcessBigBlind(Models.Messages.ActionMessage message)
        {
            if (message != null)
            {
                //Is the blind the correct amount?
                var table = TableRepo.Find(message.TableId);

                if (table != null && message.Amount == table.BigBlind)
                {
                    //handRepo.AddMessage(message);
                    return(new Models.Messages.ActionMessageResponse());
                }
                else
                {
                    throw new ArgumentException();
                }
            }
            else
            {
                throw new ArgumentNullException();
            }
        }