Exemple #1
0
        public async void GetParticipantsWithEmailFrom_GetLookupAsync()
        {
            await RefreshAndSeedTestDatabase();

            var studyParticipantLookupService = StudyParticipantMockFactory.GetStudyParticipantLookupService(_serviceProvider);
            var usersWithName = await studyParticipantLookupService.GetLookupAsync("*****@*****.**");

            Assert.Single(usersWithName);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        public async void GetParticipantsWithNameFrom_GetLookupAsync()
        {
            await RefreshAndSeedTestDatabase();

            var studyParticipantLookupService = StudyParticipantMockFactory.GetStudyParticipantLookupService(_serviceProvider);
            var usersWithName = await studyParticipantLookupService.GetLookupAsync("John");

            Assert.Equal(2, usersWithName.Count());
        }