public void GithubRequestWithType() { var baseGithubRequest = new Core.GithubRequestWithReturnType <GithubSharp.Core.Models.Commit>( new Plugins.LogProviders.NullLogger.NullLogger(true), new Plugins.CacheProviders.NullCacher.NullCacher(), new Plugins.AuthProviders.NullAuthProvider.NullAuthProvider(), "repos/erikzaadi/GithubSharp/git/commits/725f7bbf87ab0979a080e4daaa8a9dd2b9d89489" ); var commit = baseGithubRequest.GetResponseWithReturnType(); Assert.IsNotNull(commit); Assert.IsNotNull(commit.Result); Assert.IsNotNullOrEmpty(commit.Result.sha); Assert.IsNotNull(commit.Result.committer.date); Assert.IsNotNull(commit.Result.author.name); Assert.IsNotNull(commit.Result.message); Assert.IsNotNull(commit.Result.parents); Assert.IsTrue(commit.Result.parents.Count > 0); Assert.IsNotNull(commit.Result.tree.sha); }
public void GithubRequestWithType() { var baseGithubRequest = new Core.GithubRequestWithReturnType<GithubSharp.Core.Models.Commit>( new Plugins.LogProviders.NullLogger.NullLogger(true), new Plugins.CacheProviders.NullCacher.NullCacher(), new Plugins.AuthProviders.NullAuthProvider.NullAuthProvider(), "repos/erikzaadi/GithubSharp/git/commits/725f7bbf87ab0979a080e4daaa8a9dd2b9d89489" ); var commit = baseGithubRequest.GetResponseWithReturnType(); Assert.IsNotNull(commit); Assert.IsNotNull(commit.Result); Assert.IsNotNullOrEmpty(commit.Result.sha); Assert.IsNotNull(commit.Result.committer.date); Assert.IsNotNull(commit.Result.author.name); Assert.IsNotNull(commit.Result.message); Assert.IsNotNull(commit.Result.parents); Assert.IsTrue(commit.Result.parents.Count > 0); Assert.IsNotNull(commit.Result.tree.sha); }