Exemplo n.º 1
0
        /// <summary>
        /// Frees a random ticket held by a random member from the created pools.
        /// </summary>
        private async Task <bool> FreeTicket(TestMember member, TestTicket ticket)
        {
            if (!(await ticketingSystem.FreeTicket(ticket.section, ticket.row, ticket.seat, member.name)))
            {
                // unable to free the designated ticket
                return(false);
            }

            return(true);
        }