Commit Graph

26 Commits

Author SHA1 Message Date
Tom Longhurst
cd1835326b Fix xUnit Warnings (#2906)
* Fix xUnit Warnings

* Fix

* Fix formatting in AsyncPaginationExtensionGenerator.cs

---------

Co-authored-by: Keegan Campbell <me@kfcampbell.com>
2024-04-15 13:19:26 -07:00
Cédric Luthi
c94cd05b8b Obsolete UnixTimestampExtensions methods (#2121)
* The equivalent of `public static DateTimeOffset FromUnixTime(this long unixTime)` exists in the framework since .NET Framework 4.6: https://docs.microsoft.com/en-us/dotnet/api/system.datetimeoffset.fromunixtimeseconds
* The equivalent of `public static long ToUnixTime(this DateTimeOffset date)` exists in the framework since .NET Framework 4.6: https://docs.microsoft.com/en-us/dotnet/api/system.datetimeoffset.tounixtimeseconds
2020-03-03 09:30:30 -04:00
Ryan Gribble
3c818934b8 Release v0.24 - A Sight For Sore Eyes (#1539)
* Add release notes and bump version to 0.24

* run "build FormatCode" to fix up whitespace/formatting issues

* Fix failing Ssh key tests due to "validation exception".  This key must be in use on github (under another user, most likely from these tests failing).  Changed to a new SSH key and tweaked tests to reduce chance of a key being created and not destroyed

* Assignee and Assignees cant both be specified on NewIssue.  We missed this one in the PR.  Marked Assignee as [Obsolete] and fixed tests to use Assignees

* Fix a couple of Reactions tests that were calling the wrong client methods

* Fix timeline tests - looks like the response class has changed shape a bit, it now has an Issue object in the payload and Id field isnt present (leaving Id field there in case other timeline events do use it)

* Fix some following tests that require the test user to follow more than 1 other user

* Unskip these Event tests now because apparently they work!

* add breaking changes notes

* Update ApiErrorMessageSafe to return null for empty and whitespace strings (#1540)

* return null if ApiError.Message is empty or whitespace

* Uncomment test, which now passes

* update release notes to include PR1540

* Add "Bot" AccountType, was causing a deserialization exception when running the integration test "SearchForExcludedLanguage" (#1541)

* Update to include PR1541

* add bullets to make release notes easier to read

* markup additional code mentions in notes

* Fix grammar

fields => field
2017-01-17 18:56:55 +10:00
Alexander Efremov
ce5388eef5 added new unit tests 2016-06-13 13:06:31 +07:00
aedampir@gmail.com
36c08248fa New convention test was added. Now each "TheCtor" class must have "EnsuresNonNullArguments" method were throwing of ArgumentNullException from client constructor class should be tested.
All unused "using" directives were removed.
2016-04-18 12:51:35 +07:00
aedampir@gmail.com
d0c8e82453 Red Tests were fixed
Unused 'using' directive were removed.
2016-04-18 12:46:13 +07:00
Brendan Forster
43849928ae For GitHub Enterprise environments, URLs must be relative (no leading slash).
This was one of the cases we didn't notice, and so it causes the
StatisticsClient to drop the /api/v3/ prefix that GitHub Enterprise
requires to route things correctly.
2016-02-03 12:27:07 +10:30
Brendan Forster
80719c0033 aaaand format the code 2015-11-04 13:38:51 -08:00
Haacked
890f852c90 🎨 Refactor GetQueuedOperation to reduce duplication
Most calls to `GetQueuedOperation` are used to queue up an operation
that'll return a collection in a subsequent call. In the case that the
API returns No Content, we want to return an empty collection. This
refactoring embeds that last bit of logic into `GetQueuedOperation`
rather than making every caller have to do it.
2015-08-07 16:20:45 -07:00
Haacked
0e74097dde Handle NoContent response for queued operations
We didn't handle the 204 response properly for the `StatisticsClient`.
Now we do.

Fixes #836
2015-08-07 10:41:02 -07:00
Mordechai Zuber
1d6c1aee25 SshKeys, Statistics, Tags, Teams, Trees, Users 2015-05-18 03:24:59 +03:00
Kristian Hellang
2508205cfd Fixed failing tests 2015-03-18 14:33:06 +01:00
Amy Palamountain
8469a50c11 Unix Timestamp helper 2014-02-16 17:05:07 +13:00
Amy Palamountain
71029212b9 💄 for commit activities 2014-02-16 17:05:05 +13:00
Amy Palamountain
5a168f0924 💄 Lets talk about code frequencies 2014-02-16 17:05:04 +13:00
Amy Palamountain
ddab946e07 Line up with the api - what is this all about
💄
2014-02-16 17:05:02 +13:00
Amy Palamountain
ec5db2cdd5 👊 card statistics 2.0 2014-02-16 17:05:01 +13:00
Amy Palamountain
63da057642 Provide cancellation token option 2014-02-16 17:04:59 +13:00
Amy Palamountain
34383261d7 Moved Queued Wait into IApiConnection 2014-02-16 17:04:46 +13:00
Amy Palamountain
58345441de Refactor waiting into it's own method 2014-02-16 17:04:45 +13:00
Amy Palamountain
3580c13623 Basic unit tests for hourly commits 2014-02-16 17:04:43 +13:00
Amy Palamountain
1394677a1a Unit test for weekly commit count 2014-02-16 17:04:36 +13:00
Amy Palamountain
6fe41bfe16 Unit test for addition and deletion aggregate api 2014-02-16 17:04:32 +13:00
Amy Palamountain
815da312e8 Get commit activity for the last year 2014-02-16 17:04:21 +13:00
Amy Palamountain
23ee95903e 💄 renamed to GetContributors 2014-02-16 17:03:18 +13:00
Amy Palamountain
29461db857 Test stats client get contributors 2014-02-16 17:03:17 +13:00