public void Setup() { _hearingService = new Mock <IHearingsService>(); _participantService = new Mock <IParticipantService>(); _kinlyPlatformService = new Mock <IKinlyPlatformService>(); _controller = new ParticipantController(_hearingService.Object, _participantService.Object, _kinlyPlatformService.Object); _controller.MockUserIdentity(Username); }
public void Setup() { _hearingService = new Mock <IHearingsService>(); _participantService = new Mock <IParticipantService>(); _kinlyPlatformService = new Mock <IKinlyPlatformService>(); _pollyRetryService = new Mock <IPollyRetryService>(); hearingSuitabilityAnswers = new List <HearingSuitabilityAnswer> { new HearingSuitabilityAnswer() { QuestionKey = "TEST_KEY", Answer = "Test Answer", ExtendedAnswer = "Test Extended Answer" } }; _controller = new ParticipantController(_hearingService.Object, _participantService.Object, _kinlyPlatformService.Object, _pollyRetryService.Object); _controller.MockUserIdentity(Username); }