Beispiel #1
0
        private async Task SendORMs(int count)
        {
            var exams = Exam.GetRandomExams(count);

            foreach (var exam in exams)
            {
                await SendMessageAsync(MessageGenerator.GetMessageFromExam(exam)).ConfigureAwait(true);
            }
        }
Beispiel #2
0
        private async Task SendPatientMessages(int count)
        {
            var patients = Patient.GetRandomPatients(count);

            foreach (var patient in patients)
            {
                await SendMessageAsync(MessageGenerator.GetMessageFromPatient(patient)).ConfigureAwait(true);

                var exam = new Exam(patient);
                await SendMessageAsync(MessageGenerator.GetMessageFromExam(exam)).ConfigureAwait(true);
                await SendMessageAsync(MessageGenerator.GetResultMessageFromExam(exam)).ConfigureAwait(true);
            }
        }