public async void GetParticipantsWithEmailFrom_GetLookupAsync() { await RefreshAndSeedTestDatabase(); var studyParticipantLookupService = StudyParticipantMockFactory.GetStudyParticipantLookupService(_serviceProvider); var usersWithName = await studyParticipantLookupService.GetLookupAsync("*****@*****.**"); Assert.Single(usersWithName); }
public async void GetInvalidNameParticipantsFrom_GetLookupAsync() { await RefreshAndSeedTestDatabase(); var studyParticipantLookupService = StudyParticipantMockFactory.GetStudyParticipantLookupService(_serviceProvider); var usersWithName = await studyParticipantLookupService.GetLookupAsync("No Person Has this name"); Assert.Empty(usersWithName); }
public async void GetParticipantsWithNameFrom_GetLookupAsync() { await RefreshAndSeedTestDatabase(); var studyParticipantLookupService = StudyParticipantMockFactory.GetStudyParticipantLookupService(_serviceProvider); var usersWithName = await studyParticipantLookupService.GetLookupAsync("John"); Assert.Equal(2, usersWithName.Count()); }