public async Task WhenUserNotInRole_ThenListCloudStorageSinksAsyncThrowsResourceAccessDeniedException(
            [Credential(Role = PredefinedRole.ComputeViewer)] ResourceTask <ICredential> credential)
        {
            var adapter = new AuditLogAdapter(await credential);

            AssertEx.ThrowsAggregateException <ResourceAccessDeniedException>(
                () => adapter.ListCloudStorageSinksAsync(
                    TestProject.ProjectId,
                    CancellationToken.None).Wait());
        }
        public async Task WhenSinkExists_ThenListCloudStorageSinksAsyncReturnsList(
            [Credential(Role = PredefinedRole.LogsViewer)] ResourceTask <ICredential> credential)
        {
            var adapter = new AuditLogAdapter(await credential);

            var buckets = await adapter.ListCloudStorageSinksAsync(
                TestProject.ProjectId,
                CancellationToken.None);

            Assert.IsNotNull(buckets);
        }