예제 #1
0
        protected Participant CreateParticipant(
            Evaluation evaluation,
            string azureUniqueId      = null,
            Organization?organization = null,
            Role?role = null)
        {
            if (azureUniqueId == null)
            {
                azureUniqueId = Randomize.Integer().ToString();
            }

            Participant participant = _mutation.CreateParticipant(
                azureUniqueId: azureUniqueId,
                evaluationId: evaluation.Id,
                organization: organization.GetValueOrDefault(Randomize.Organization()),
                role: role.GetValueOrDefault(Randomize.Role())
                );

            return(participant);
        }