GitHub.Api.SimpleApiClient.IsEnterprise C# (CSharp) Метод

IsEnterprise() публичный Метод

public IsEnterprise ( ) : bool
Результат bool
        public bool IsEnterprise()
        {
            return isEnterprise.HasValue && isEnterprise.Value;
        }

Usage Example

Пример #1
0
        public void ReturnsFalseWhenWeHaveNotRequestedRepository()
        {
            var gitHubHost = HostAddress.GitHubDotComHostAddress;
            var gitHubClient = Substitute.For<IGitHubClient>();
            var enterpriseProbe = Substitute.For<IEnterpriseProbeTask>();
            var wikiProbe = Substitute.For<IWikiProbe>();
            var client = new SimpleApiClient(
                "https://github.com/github/visualstudio",
                gitHubClient,
                new Lazy<IEnterpriseProbeTask>(() => enterpriseProbe),
                new Lazy<IWikiProbe>(() => wikiProbe));

            var result = client.IsEnterprise();

            Assert.False(result);
        }
All Usage Examples Of GitHub.Api.SimpleApiClient::IsEnterprise