From fc76ce02deba99ba77b6468aabbaa9305e538a23 Mon Sep 17 00:00:00 2001 From: Josh Sullivan Date: Sat, 7 Dec 2013 20:29:15 -0500 Subject: [PATCH] Fixed auto properties and moved integration tests around --- .../{ => Clients}/PullRequestsClientTests.cs | 0 Octokit/Models/Request/NewPullRequest.cs | 12 ++++++------ Octokit/Octokit.csproj | 2 ++ 3 files changed, 8 insertions(+), 6 deletions(-) rename Octokit.Tests.Integration/{ => Clients}/PullRequestsClientTests.cs (100%) diff --git a/Octokit.Tests.Integration/PullRequestsClientTests.cs b/Octokit.Tests.Integration/Clients/PullRequestsClientTests.cs similarity index 100% rename from Octokit.Tests.Integration/PullRequestsClientTests.cs rename to Octokit.Tests.Integration/Clients/PullRequestsClientTests.cs diff --git a/Octokit/Models/Request/NewPullRequest.cs b/Octokit/Models/Request/NewPullRequest.cs index 9f7adcbd..10748605 100644 --- a/Octokit/Models/Request/NewPullRequest.cs +++ b/Octokit/Models/Request/NewPullRequest.cs @@ -13,25 +13,25 @@ namespace Octokit Ensure.ArgumentNotNullOrEmptyString(head, "head"); Ensure.ArgumentNotNullOrEmptyString(baseRef, "baseRef"); - _title = title; - _head = head; - _base = baseRef; + Title = title; + Head = head; + Base = baseRef; } /// /// Title of the pull request (required) /// - readonly string _title; + public string Title { get; private set; } /// /// The branch (or git ref) you want your changes pulled into (required). /// - readonly string _base; + public string Base { get; private set; } /// /// The branch (or git ref) where your changes are implemented (required). /// - readonly string _head; + public string Head { get; private set; } /// /// Body of the pull request (optional) diff --git a/Octokit/Octokit.csproj b/Octokit/Octokit.csproj index 5f04f444..a39404da 100644 --- a/Octokit/Octokit.csproj +++ b/Octokit/Octokit.csproj @@ -150,6 +150,8 @@ + +