Add method to check if repo vulnerability alerts are enabled (#2453)

This commit is contained in:
Lee Boynton
2022-07-06 17:29:21 +01:00
committed by GitHub
parent f317f9dadc
commit 23a91a492e
8 changed files with 164 additions and 0 deletions
@@ -2055,4 +2055,15 @@ public class RepositoriesClientTests
}
}
}
public class TheAreVulnerabilityAlertsEnabledMethod
{
[IntegrationTest]
public async Task AreVulnerabilityAlertsEnabledReturnsTrue()
{
var github = Helper.GetAuthenticatedClient();
var enabled = await github.Repository.AreVulnerabilityAlertsEnabled("owner", "name");
Assert.True(enabled);
}
}
}