Exemplo n.º 1
0
        /// <summary>
        /// Check if a repository is watched by the current authenticated user
        /// </summary>
        /// <param name="owner">The owner of the repository</param>
        /// <param name="name">The name of the repository</param>
        /// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception>
        public IObservable <bool> CheckWatched(string owner, string name)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
            Ensure.ArgumentNotNullOrEmptyString(name, "name");

            return(_client.CheckWatched(owner, name).ToObservable());
        }
Exemplo n.º 2
0
            public async Task CheckWatched()
            {
                var check = await _watchingClient.CheckWatched(_context.RepositoryOwner, _context.RepositoryName);

                Assert.True(check);
            }