public async Task Should_return_backups_result_if_matching_and_permission_given() { var permission = Permissions.ForApp(Permissions.AppBackupsRead, appId.Name); var ctx = ContextWithPermission(permission.Id); A.CallTo(() => urlGenerator.BackupsUI(appId)) .Returns("backups-url"); var result = await sut.SearchAsync("backups", ctx); result.Should().BeEquivalentTo( new SearchResults() .Add("Backups", SearchResultType.Setting, "backups-url")); }