public async Task Should_return_roles_result_if_matching_and_permission_given() { var permission = Permissions.ForApp(Permissions.AppRolesRead, appId.Name); var ctx = ContextWithPermission(permission.Id); A.CallTo(() => urlGenerator.RolesUI(appId)) .Returns("roles-url"); var result = await sut.SearchAsync("roles", ctx); result.Should().BeEquivalentTo( new SearchResults() .Add("Roles", SearchResultType.Setting, "roles-url")); }