public ObservableEnterpriseClient(IGitHubClient client) { Ensure.ArgumentNotNull(client, "client"); AdminStats = new ObservableEnterpriseAdminStatsClient(client); License = new ObservableEnterpriseLicenseClient(client); Organization = new ObservableEnterpriseOrganizationClient(client); }
public ObservableEnterpriseClient(IGitHubClient client) { Ensure.ArgumentNotNull(client, "client"); AdminStats = new ObservableEnterpriseAdminStatsClient(client); License = new ObservableEnterpriseLicenseClient(client); Organization = new ObservableEnterpriseOrganizationClient(client); SearchIndexing = new ObservableEnterpriseSearchIndexingClient(client); }
public ObservableEnterpriseClient(IGitHubClient client) { Ensure.ArgumentNotNull(client, nameof(client)); AdminStats = new ObservableEnterpriseAdminStatsClient(client); Ldap = new ObservableEnterpriseLdapClient(client); License = new ObservableEnterpriseLicenseClient(client); Organization = new ObservableEnterpriseOrganizationClient(client); SearchIndexing = new ObservableEnterpriseSearchIndexingClient(client); PreReceiveEnvironment = new ObservableEnterprisePreReceiveEnvironmentsClient(client); }
public void CallsIntoClient() { var github = Substitute.For <IGitHubClient>(); var client = new ObservableEnterpriseOrganizationClient(github); client.Create(new NewOrganization("org", "admin", "org name")); github.Enterprise.Organization.Received(1).Create( Arg.Is <NewOrganization>(a => a.Login == "org" && a.Admin == "admin" && a.ProfileName == "org name")); }