public void GetStudyRolesNames(int expectedValue) { var lookupService = LookupServiceMockFactory.GetLookupService(_serviceProvider); var roles = lookupService.StudyRoles(); Xunit.Assert.Equal(roles.Count(), expectedValue); }
public async void GetStudyRolesUserCanGive(string studyRole, List <LookupDto> expectedRoles) { await RefreshAndSeedTestDatabase(studyRole); var lookupService = LookupServiceMockFactory.GetLookupService(_serviceProvider); var roles = await lookupService.StudyRolesUserCanGive(1); var rolesList = roles.ToList(); Xunit.Assert.Equal(expectedRoles.Count, rolesList.Count); CollectionAssert.AreEquivalent(expectedRoles, rolesList); }