Create Observable Tests

This commit is contained in:
pltaylor
2013-11-11 09:03:30 -05:00
parent 59441ed030
commit b2a2897bc8
5 changed files with 102 additions and 3 deletions
@@ -0,0 +1,32 @@
using System;
namespace Octokit.Reactive
{
public interface IObservableTreesClient
{
/// <summary>
/// Gets a Tree Response for a given SHA.
/// </summary>
/// <remarks>
/// http://developer.github.com/v3/git/trees/#get-a-tree
/// </remarks>
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="reference">The SHA that references the tree</param>
/// <returns>The <see cref="TreeResponse"/> for the specified Tree.</returns>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
IObservable<TreeResponse> Get(string owner, string name, string reference);
/// <summary>
/// Creates a new Tree in the specified repo
/// </summary>
/// <remarks>
/// http://developer.github.com/v3/git/trees/#create-a-tree
/// </remarks>
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="newTree">The value of the new tree</param>
/// <returns>The <see cref="TreeResponse"/> that was just created.</returns>
IObservable<TreeResponse> Create(string owner, string name, NewTree newTree);
}
}