Beispiel #1
0
 /// <inheritdoc />
 public async Task <Repository> GetRepositoryByIdAsync(long repositoryId)
 {
     ArgumentCheck.IntegerIsGreaterThenThreshold(
         repositoryId,
         nameof(repositoryId),
         NotInitializedRepositoryId);
     return(await gitHubClient.Repository.Get(repositoryId));
 }
        public void IntegerIsGreaterThenThresholdPositive()
        {
            // act
            ArgumentCheck.IntegerIsGreaterThenThreshold(3, nameof(ArgumentCheck), 0);

            // assert that we don't throw exception
            Assert.True(true);
        }
 public void IntegerIsGreaterThenThresholdNegative()
 {
     // act, assert
     Assert.Throws <ArgumentException>(() => ArgumentCheck.IntegerIsGreaterThenThreshold(0, nameof(ArgumentCheck), 3));
 }