public BookNewConferenceRequest BuildRequest()
 {
     _request.AudioRecordingRequired = HearingData.AUDIO_RECORDING_REQUIRED;
     _request.CaseName          = $"{AppShortName.FromApplication(Application.TestApi)} {GetCaseNamePrefix()} {GenerateRandom.Letters(_randomNumber)}";
     _request.CaseNumber        = GenerateRandom.CaseNumber(_randomNumber);
     _request.Endpoints         = new List <AddEndpointRequest>();
     _request.HearingRefId      = Guid.NewGuid();
     _request.HearingVenueName  = HearingData.VENUE_NAME;
     _request.Participants      = new BookConferenceParticipantsBuilder(_users, _isCACDCaseType).Build();
     _request.ScheduledDateTime = DateTime.UtcNow.AddMinutes(5);
     _request.ScheduledDuration = HearingData.SCHEDULED_DURATION;
     AddLinkedParticipants();
     return(_request);
 }
Beispiel #2
0
 private string GetAppShortName()
 {
     return(_createHearingRequest.TestType == TestType.Automated ? $"{AppShortName.FromApplication(_createHearingRequest.Application)} " : string.Empty);
 }
Beispiel #3
0
 public UserBuilder ForApplication(Application application)
 {
     _application  = application;
     _appShortName = AppShortName.FromApplication(_application);
     return(this);
 }