public RepositoryHost(
IApiClient apiClient,
IModelService modelService,
ILoginCache loginCache,
ITwoFactorChallengeHandler twoFactorChallengeHandler,
IUsageTracker usage)
{
ApiClient = apiClient;
ModelService = modelService;
this.loginCache = loginCache;
this.twoFactorChallengeHandler = twoFactorChallengeHandler;
this.usage = usage;
Debug.Assert(apiClient.HostAddress != null, "HostAddress of an api client shouldn't be null");
Address = apiClient.HostAddress;
hostAddress = apiClient.HostAddress;
isEnterprise = !hostAddress.IsGitHubDotCom();
Title = apiClient.HostAddress.Title;
}