Commit Graph

192 Commits

Author SHA1 Message Date
Ricardo Santos
69c199ccb5 Add assertion to compare LastTag.Count property 2015-07-05 21:11:15 +01:00
Ricardo Santos
683bb60402 Set taggings value to Count property 2015-07-05 21:08:13 +01:00
Ricardo Santos
1fa98d41ee Add tests to TagApi.GetInfoCommand 2015-07-05 19:22:39 +01:00
Ricardo Santos
71a87cdb42 Add response resources to test 2015-07-05 19:21:49 +01:00
Ricardo Santos
b2dbe3bc45 Add GetInfoCommand to TagApi 2015-07-05 19:18:55 +01:00
Ricardo Santos
3378ec6a84 Add new property to LastTag 2015-07-05 19:17:55 +01:00
Piotr Wiewiura
23be035257 Implemented user.getTopArtists 2015-06-27 22:30:18 +02:00
Rikki Tooley
4cfac6a411 Add Tag API 2015-06-21 20:59:08 +01:00
Rikki Tooley
80c3308fd0 tag.getSimilar, tidying some tests 2015-06-21 19:58:04 +01:00
Rikki Tooley
3e991abc8a Add set accessor back to LastAsyncCommandBase, so Syro works again 2015-06-21 19:09:12 +01:00
Melvyn
2e3ab5bf79 removed the api methods names constant list, and used the custom attribute on each command as the source for the LastAsyncCommandBase.Method property instead. 2015-06-20 16:22:20 +02:00
Melvyn
3aa33663b5 add a unit test checking whether each Command has an ApiMethodNameAttribute. 2015-06-20 13:11:15 +02:00
Melvyn
a4520fb31e removed now useless "CreateCommand()" method, previously used to create an instance of each Command for the progress reporter. 2015-06-20 12:38:32 +02:00
Melvyn
5b38910dd5 format the date in the progress report using the invariant culture. regenerated the progress report. 2015-06-20 12:37:51 +02:00
Melvyn
ff753c906c only allows the ApiMethodName attribute to be defined on classes. 2015-06-20 12:36:44 +02:00
Melvyn
512009f187 updated the progress reporter so that it uses the custom ApiMethodNameAttribute instead of trying to instantiate each command to get its Method property. 2015-06-20 12:36:14 +02:00
Melvyn
83fd97e85a implemented the "Method" property of each Command using the constants defined in LastMethodsNames. Each Command now also has a custom ApiMethodName attribute returning its correct api method name. 2015-06-20 12:24:23 +02:00
Melvyn
f05c76181b Added an auto-generated class containing all the Last.fm api methods names as constants, and an attribute to use them on the Commands. 2015-06-20 11:48:49 +02:00
Melvyn
dabe563a2f fix an ArgumentOutOfRangeException in the Unit Tests causing a few tests to fail.
The exception probably occured only with a local time zone with a positive offset, while performing the implicit conversion from DateTime.MinValue to a DateTimeOffset. http://stackoverflow.com/questions/6924198/converting-datetime-minvalue-to-datetimeoffset
2015-06-20 10:16:31 +02:00
Rikki Tooley
b28c3c1471 Fixing syro after httpclient changes 2015-04-29 13:45:52 +01:00
Rikki Tooley
57092d7bc9 Tidying up ScrobbleCommand and ScrobbleResponse 2015-04-28 14:35:27 +01:00
Rikki Tooley
65448d6032 Scrobbler.SendCachedScrobblesAsync() 2015-04-26 19:36:17 +01:00
Rikki Tooley
33a969c6df Match method names of *Api classes match REST api method names 2015-04-26 19:03:42 +01:00
Rikki Tooley
24d0c40f59 Return ignored scrobbles on ScrobbleResponses
Closes #59
2015-04-26 18:32:20 +01:00
Rikki Tooley
48be3af2c9 Update assembly info 2015-04-26 18:32:20 +01:00
Rikki Tooley
93a371674d Dispose classes created by LastfmClient #67, Scrobble command needs SSL for multiple scrobbles #61 2015-04-26 18:32:20 +01:00
Rikki Tooley
a44e158e95 LastfmClient class, closes #64 2015-04-26 01:13:12 +01:00
Rikki Tooley
6fcb990259 Add HttpClient parameter to api classes + pass them down to commands, make api classes disposable
Closes #66, closes #41
2015-04-26 00:36:52 +01:00
Rikki Tooley
742844b819 Move Scrobbler class to Objects namespace 2015-04-25 23:56:07 +01:00
Rikki Tooley
6fe0c71e25 Test to ensure existng cached track is sent along with a new scrobble 2015-04-25 14:49:59 +01:00
Rikki Tooley
ea3a7eb2c3 Scrobble batching
TODO test batching combined with caching in unit tests
2015-04-24 00:47:30 +01:00
Rikki Tooley
64170d9a7c Merge branch 'master' into scrobbler
Conflicts:
	src/IF.Lastfm.Core/Api/Enums/LastResponseStatus.cs
2015-04-23 23:56:04 +01:00
Rikki Tooley
f16528f5ad Enums can only have 32 types! 2015-04-23 23:42:52 +01:00
Rikki Tooley
0ad13f4463 Let's see what the problem is... 2015-04-23 23:31:19 +01:00
Rikki Tooley
d10bdd79f6 Fix scrobble request body tests 2015-04-23 22:51:26 +01:00
Rikki Tooley
92d69f3619 Fix tests failure in different timezone 2015-04-17 18:13:41 -07:00
Rikki Tooley
211fb3a559 Support batch scrobbling
Adjusted generate method signature to sort by ASCII order
2015-04-17 01:54:19 +01:00
Rikki Tooley
7bff9c698b Scrobble command parameter test 2015-04-12 04:16:13 +01:00
Rikki Tooley
2aa4ab68de Testing for correct request as well as response for scrobble command, marking ITrackApi.ScrobbleAsync as obsolete 2015-04-12 03:50:50 +01:00
Rikki Tooley
16af668c8e Parameter correct tests for library.removeScrobble and library.removeTrack 2015-04-11 00:03:51 +01:00
Rikki Tooley
d30519e38d Fixing enum collision bug caused by #62
it was impossible to represent Cached, CachedFailed or RequestFailed because their auto assigned int overlapped with other members at 2, 3, 4.
2015-04-10 22:52:45 +01:00
Rikki Tooley
7da15fd8f4 SQLiteScrobbler, tests passing 2015-04-06 01:57:01 +01:00
Rikki Tooley
a0209625c2 Fixing enum collision bug 2015-04-06 00:17:01 +01:00
Rikki Tooley
e30bc37f41 Fix build, upgrade SQLite integration tests to NUnit 2015-04-05 23:30:50 +01:00
Rikki Tooley
f299b1f8e9 Merge branch 'master' into scrobbler
Conflicts:
	src/IF.Lastfm.Core.Tests.Integration/packages.config
	src/IF.Lastfm.Core.Tests/TestHelper.cs
2015-04-05 23:26:34 +01:00
Rikki Tooley
1c9b87a3f1 Switching MSTest to NUnit 2015-04-05 22:26:10 +01:00
Rikki Tooley
8db319d342 Base SQLiteScrobbler, plus ScrobblerTestsBase... but MSTest doesn't support unit tests across assemblies 2015-04-05 21:46:03 +01:00
Rikki Tooley
7207d05b3d Update PROGRESS.md, 27% 2015-04-05 01:04:49 +01:00
Rikki Tooley
ba826e9da5 Putting Success property back on ILastResponse 2015-04-05 00:57:42 +01:00
kasthack
7faa2d5b15 fix build on .net 4.5 2015-04-05 01:58:55 +03:00