Octokit.Reactive.ObservableOrganizationsClient.Update C# (CSharp) Méthode

Update() public méthode

Update the specified organization with data from OrganizationUpdate.
Thrown if the client is not authenticated.
public Update ( string organizationName, OrganizationUpdate updateRequest ) : IObservable
organizationName string The name of the organization to update.
updateRequest OrganizationUpdate
Résultat IObservable
        public IObservable<Organization> Update(string organizationName, OrganizationUpdate updateRequest)
        {
            Ensure.ArgumentNotNullOrEmptyString(organizationName, "organizationName");
            Ensure.ArgumentNotNull(updateRequest, "updateRequest");

            return _client.Update(organizationName, updateRequest).ToObservable();
        }
    }

Usage Example

            public void EnsuresNonNullArguments()
            {
                var gitHubClient = Substitute.For<IGitHubClient>();
                var client = new ObservableOrganizationsClient(gitHubClient);

                Assert.Throws<ArgumentNullException>(() => client.Update(null, new OrganizationUpdate()));
                Assert.Throws<ArgumentNullException>(() => client.Update("org", null));

                Assert.Throws<ArgumentException>(() => client.Update("", new OrganizationUpdate()));
            }
All Usage Examples Of Octokit.Reactive.ObservableOrganizationsClient::Update