public void Setup() { _mocker = AutoMock.GetLoose(); _service = _mocker.Create <VirtualRoomService>(); _conference = new ConferenceBuilder().WithParticipants(3) .WithParticipant(UserRole.JudicialOfficeHolder, "Judicial") .WithParticipant(UserRole.JudicialOfficeHolder, "Judicial") .Build(); }
public void Setup() { _mocker = AutoMock.GetLoose(); _service = _mocker.Create <VirtualRoomService>(); _conference = InitConference(); var emptyWitnessInterpreterRoom = new ParticipantRoom(_conference.Id, "Interpreter1", VirtualCourtRoomType.Witness); emptyWitnessInterpreterRoom.SetProtectedProperty(nameof(emptyWitnessInterpreterRoom.Id), 1); _mocker.Mock <IQueryHandler>().Setup(x => x.Handle <GetParticipantRoomsForConferenceQuery, List <ParticipantRoom> >(It.Is <GetParticipantRoomsForConferenceQuery>(q => q.ConferenceId == _conference.Id))) .ReturnsAsync(new List <ParticipantRoom> { emptyWitnessInterpreterRoom }); }
private void init(RestClient restClient, String apiKey) { packageService = new PackageService(restClient, this.baseUrl, jsonSerializerSettings); reportService = new ReportService(restClient, this.baseUrl, jsonSerializerSettings); systemService = new SystemService(restClient, this.baseUrl, jsonSerializerSettings); signingService = new SigningService(restClient, this.baseUrl, jsonSerializerSettings); signingStyleService = new SigningStyleService(restClient, this.baseUrl, jsonSerializerSettings); signerVerificationService = new SignerVerificationService(restClient, this.baseUrl, jsonSerializerSettings); signatureImageService = new SignatureImageService(restClient, this.baseUrl, jsonSerializerSettings); sessionService = new SessionService(apiKey, this.baseUrl); fieldSummaryService = new FieldSummaryService(new FieldSummaryApiClient(apiKey, this.baseUrl)); auditService = new AuditService(apiKey, this.baseUrl); eventNotificationService = new EventNotificationService(new EventNotificationApiClient(restClient, this.baseUrl, jsonSerializerSettings)); customFieldService = new CustomFieldService(new CustomFieldApiClient(restClient, this.baseUrl, jsonSerializerSettings)); groupService = new GroupService(new GroupApiClient(restClient, this.baseUrl, jsonSerializerSettings)); accountService = new AccountService(new AccountApiClient(restClient, this.baseUrl, jsonSerializerSettings)); accountConfigService = new AccountConfigService(new AccountConfigClient(restClient, this.baseUrl, jsonSerializerSettings)); approvalService = new ApprovalService(new ApprovalApiClient(restClient, this.baseUrl, jsonSerializerSettings)); reminderService = new ReminderService(new ReminderApiClient(restClient, this.baseUrl, jsonSerializerSettings)); templateService = new TemplateService(new TemplateApiClient(restClient, this.baseUrl, jsonSerializerSettings), packageService); authenticationTokenService = new AuthenticationTokenService(restClient, this.baseUrl); attachmentRequirementService = new AttachmentRequirementService(restClient, this.baseUrl, jsonSerializerSettings); layoutService = new LayoutService(new LayoutApiClient(restClient, this.baseUrl, jsonSerializerSettings)); qrCodeService = new QRCodeService(new QRCodeApiClient(restClient, this.baseUrl, jsonSerializerSettings)); authenticationService = new AuthenticationService(this.webpageUrl); dataRetentionSettingsService = new DataRetentionSettingsService(restClient, this.baseUrl); virtualRoomService = new VirtualRoomService(restClient, this.baseUrl); }