public async Task Should_return_rules_result_if_matching_and_permission_given()
        {
            var permission = Permissions.ForApp(Permissions.AppRulesRead, appId.Name);

            var ctx = ContextWithPermission(permission.Id);

            A.CallTo(() => urlGenerator.RulesUI(appId))
            .Returns("rules-url");

            var result = await sut.SearchAsync("rules", ctx);

            result.Should().BeEquivalentTo(
                new SearchResults()
                .Add("Rules", SearchResultType.Rule, "rules-url"));
        }