Prayank Mathur
db8738b675
Corrected TheUpdateMethod.EnsureArgumentsNotNull()
2016-03-17 16:38:42 +05:30
Sarmad
2366c998a2
added unit tests for the new-parameters-on-ListYourRepository
2016-02-10 04:29:43 +05:00
Brendan Forster
6bedf1ee9b
just a bit of code cleanup
2016-02-02 10:01:16 +10:30
Brendan Forster
46d9e1f745
remove Get<T> extension method and update impacted tests to use correct method, removing the need for
...
additional nulls in tests
2016-01-25 14:57:15 +10:30
Ryan Gribble
1af5f3b1b9
Change ProtectBranch/UnprotectBranch into a single EditBranch function
...
Add tests for various protected/unprotected scenarios
2015-12-19 19:58:03 +10:00
Ryan Gribble
d7472d6699
Add Protect/Unprotect Branch functionality
...
- Create BranchUpdate model
- Add ProtectBranch and UnprotectBranch calls to RepositoryClient
- Add tests
2015-12-19 19:58:01 +10:00
Ryan Gribble
2a2a4b6d22
Add Protected Branches to Branch object
...
- Create BranchProtection models
- Add Protection element to Branch model
- Adjust RepositoryClient GetBranch and GetBranches calls to set the special preview accepts header to enable Protected Branches API (currently in preview)
- Adjust tests to include preview accepts header
- Add test for Protection element
2015-12-19 19:58:00 +10:00
Brendan Forster
80719c0033
aaaand format the code
2015-11-04 13:38:51 -08:00
Mordechai Zuber
c8a7cd8c17
fix expected exception
2015-05-18 03:44:39 +03:00
Mordechai Zuber
750e85c325
RepoCollaborators, Repositories, RepositoryCommen...
...
ts, RepositoryContents
2015-05-18 03:12:50 +03:00
Brendan Forster
6ab19de051
what is tests
2015-04-23 10:18:10 +09:30
Brendan Forster
c344dfe7c2
Revert "removed GetAllPublic overload due to paging issue and parameters clobbering"
...
This reverts commit 26a8bf0e81 .
2015-04-23 09:09:17 +09:30
Brendan Forster
26a8bf0e81
removed GetAllPublic overload due to paging issue and parameters clobbering
2015-04-22 12:20:42 +09:30
Henrik Andersson
68840e317f
Making the since parameter required
...
Adding 💄 `Task.FromResult` to tests
2015-04-07 07:15:14 +10:00
Henrik Andersson
818f730a6c
Add tests
2015-03-23 23:23:08 +10:00
Haacked
a94051d6b0
Repository name is required when creating a repo
...
I was trying to create a repository and I wasn't sure which parameters
were required. Following our philosophy of exposing required parameters
in the constructor, I change the `NewRepository` object to take in a
repository name and to make that property readonly.
2015-03-19 16:25:03 -07:00
Brendan Forster
78309612eb
wrote some unit tests yo
2015-03-06 09:44:48 +09:30
Brendan Forster
181a07b706
Merge pull request #691 from rms81/add-get-all-pub-repos
...
Fix for issue #686 List all public repositories
2015-03-04 20:45:38 +10:30
rms81
86244d58a1
Rename tests
...
Some RepositoriesClientTests test methods had the names wrong. According to the method name the method under test would return organizations and not repositories.
2015-02-01 19:34:28 +00:00
rms81
90b6bdba3a
Add unit test for GetAll
2015-02-01 17:48:59 +00:00
Gabriel Weyer
1b1a397a09
RepositoryExistsException has now two constructors (one for account and one for organization)
2015-01-08 17:09:08 +11:00
Brendan Forster
ec2f6ddca2
cleanup these dictionary responses to be have consistently
2015-01-04 11:51:04 +09:30
Kristian Hellang
bed18b9980
Moved GetReadme and GetReadmeHtml to Contents
2015-01-02 01:08:25 -08:00
Brendan Forster
7d545754a7
one project builds
2014-12-14 21:37:57 +09:30
Simon Cropp
bb161e0e40
make GetAllContributors return a custom dto
...
fixes #610
2014-12-07 22:32:36 +11:00
Brendan Forster
36b9397484
breaking change - HtmlUrl does not acknowledge custom Accepts. use the proper API
2014-09-29 20:43:00 +10:00
Timothy Haagenson
3f18b667bc
implement get repository commit
...
implementation for getting a single repository commit. Includes
implementation, unit tests and xml docs
2014-07-09 10:35:37 -05:00
Timothy Haagenson
a72e39f98b
Get All repo commits with request parameters
...
Implemented Get All using the available parameters wrapped in a
CommitRequest object. Added unit tests and xml documentation along the
way.
2014-07-09 09:38:02 -05:00
Timothy Haagenson
f1b772e4e8
Repository Commits Get All
...
Added the logic for getting all commits for a repository including unit
tests and XML docs
2014-07-08 16:14:26 -05:00
Brendan Forster
e0dab3ea8b
fix impacted tests, live a happy life
2014-04-30 13:52:42 +08:00
Brendan Forster
e6be0ad334
moved function out to separate client
2014-03-08 19:11:59 +11:00
Brendan Forster
ba82c4ea68
added unit tests
2014-03-08 19:01:33 +11:00
Haacked
34ac57ccab
Add exception for exceeding the private quota
2014-02-18 22:47:45 -08:00
Haacked
dae6cb2ca6
Implement RepositoryExistsException
...
This exception is thrown when we try to create a repository but it
already exists on the server.
2014-02-18 21:03:29 -08:00
Phil Haack
abf0a472e2
Merge pull request #319 from pmacn/repositoriesclient
...
Implementations of the missing RepositoriesClient methods
2014-02-17 20:35:52 -08:00
Peter MacNaughton
a55db0165e
Added missing methods on IRepositoriesClient
...
Added unit tests for newly added methods
Added models RepositoryTag, RepositoryLanguage and RepositoryUpdate
2014-02-10 00:09:09 -07:00
Peter MacNaughton
b8c18e2da6
Fixing some unit tests that were not doing
...
any assertions.
Adding Received() where it was missing.
The majority of these instances were unawaited AssertEx.Throws
They are now all either awaited or replaced with Assert.Throw
Assert.Throw was used when possible and when not an option
AssertEx.Throw was awaited.
2014-02-09 01:12:31 -07:00
Chris Heckathorne
924543dab7
Added GetBranches method
2013-12-20 14:02:25 -05:00
Haacked
c20f31e752
Cleaning up the naming in these tests
2013-10-29 22:33:29 -07:00
Haacked
1d64210ac5
Fix endpoint URLs for Enterprise support
...
Since Enterprise base URLs end with /api/v3 we need to make sure
the endpoints are relative and not absolute.
2013-10-29 16:02:00 -07:00
Haacked
04958410ea
Flatten the observables for repositories
2013-10-16 18:54:06 -07:00
Haacked
50a197742d
Fix releases client to pass accepts header
2013-10-15 13:59:14 -07:00
Haacked
25c83ac206
Reorder accepts and contentType parameters
2013-10-15 13:47:49 -07:00
half-ogre
a0306ae1df
use HTTP verbs for clarity: PUT edition
...
GetOrCreate no more
2013-10-14 12:14:29 -07:00
half-ogre
e7da50cb9d
remove the T from ApiConnection{T}
...
It isn't buying is much, and by getting rid of it we can make API
connection more general. getting rid of strangeness like GetItem and
Upload
2013-10-14 12:05:10 -07:00
half-ogre
0bbfa4b41b
unit tests for deleting a repo
2013-10-09 11:32:53 -07:00
half-ogre
c0b25e00f0
unit tests for creating an org repo
2013-10-09 11:06:51 -07:00
Haacked
0525e5fa50
Implement method to get README html
...
The old implementation would actually retrieve the entire HTML page
where the README is located. We want to simply make the same request
with a different ACCEPT header so we can retrieve the portion of the
README html that we'd actually want to display.
2013-10-09 10:44:00 -07:00
half-ogre
6f3fa81789
move internal stuff to .Internal namespace
2013-10-08 15:14:06 -07:00
half-ogre
39b4c35e7c
move clients into root namespace
...
Only we can stop namespace proliferation.
2013-10-08 15:08:00 -07:00