Commit Graph

71 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
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
Piotr Wiewiura
23be035257 Implemented user.getTopArtists 2015-06-27 22:30:18 +02:00
Rikki Tooley
80c3308fd0 tag.getSimilar, tidying some tests 2015-06-21 19:58:04 +01:00
Melvyn
3aa33663b5 add a unit test checking whether each Command has an ApiMethodNameAttribute. 2015-06-20 13:11:15 +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
24d0c40f59 Return ignored scrobbles on ScrobbleResponses
Closes #59
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
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
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
7da15fd8f4 SQLiteScrobbler, tests passing 2015-04-06 01:57: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
ba826e9da5 Putting Success property back on ILastResponse 2015-04-05 00:57:42 +01:00
Rikki Tooley
8a04cde0f4 #61 Scrobbler class with support for external HttpClient (#41), + tests
Also add Alt+T key combo to Syro to insert timestamp to focussed field, and fix unit tests
2015-04-04 21:23:14 +01:00
Rikki Tooley
a06f01bfa7 Fixing the change from yesterday 2015-04-04 14:57:21 +01:00
Rikki Tooley
4d3e60685e Rename LastFmApiError to LastResponseStatus, more command tidying 2015-04-04 03:30:40 +01:00
Rikki Tooley
e3ca4f3b14 Tidying command classes
Closes #43
2015-04-04 02:24:45 +01:00
Rikki Tooley
bac183be0b Json.NET serialising datetimeoffets weirdly, fix the scrobble integration test by testing track.TimePlayed separately 2015-04-03 21:06:59 +01:00
Rikki Tooley
b38cd0fe45 Accidentally broke a bunch of tests, fixing 2015-04-03 18:24:22 +01:00
Rikki Tooley
4afe00f663 Response tests for user.getTopAlbums 2015-04-03 18:04:50 +01:00
Rikki Tooley
cd157882eb user get top albums command 2015-04-03 16:13:53 +01:00
Harry
4af69f16d8 Renaming TotalPlayCount and fixing possible bug
also added play count to artist
2015-02-28 11:05:15 -04:00
Rikki Tooley
6a82519acb Updating NuGet packages
Json.Net -> 6.0.8
Closes #55
2015-02-19 19:16:19 +00:00
Rikki Tooley
82b71c36de Making test logging ~30% better 2015-02-17 10:06:18 +00:00
Rikki Tooley
d2d4a595a8 artist.getTags (by username) command 2015-01-04 03:53:15 +00:00
Rikki Tooley
1533b0f987 artist.getTopTags 2015-01-04 03:31:13 +00:00
Rikki Tooley
b49b0aa442 Made PageResponse<T> covariant and readonly, changed signature of PageResponse.CreateSuccessResponse method, tests for album.getTagsByUserCommand 2015-01-04 02:47:08 +00:00
Rikki Tooley
adf6d7316b Moved track.updateNowPlaying to a command
Also
- Fix for track.scrobble test failing half the time
- Changed signature of user.getRecentTracks method to make since parameter optional, added note about different behaviour with 0 or 1 as page number
- Changed constructors for Scrobble
- Fixed DateTime issue in test serialise method
2015-01-03 23:32:19 +00:00
Rikki Tooley
85474f2ea2 Fix track.scrobble test 2015-01-03 21:40:28 +00:00
Rikki Tooley
b21d0e1a6c track.scrobble integration test, fix for LastAuth not working 2015-01-03 21:18:35 +00:00
Rikki Tooley
e96010bcd7 UserGetRecommendedArtistsCommand tests
Fix bug in syro with post commands
2015-01-03 02:17:13 +00:00
Rikki Tooley
577beae9c5 artist.getInfo tests
(also fix auth test, oops)
2015-01-03 00:17:54 +00:00
Rikki Tooley
cc8d6cd2cc LastAuth tests 2015-01-02 23:15:56 +00:00
Rikki Tooley
564b0dc8de Forgot to commit the project file.....
http://i.imgur.com/QDgKUpw.jpg
2014-12-22 23:29:53 +00:00
Rikki Tooley
73835fc447 Style changes and a bit of tidying, rename some commands (#43)
Also excluding Object tests temporarily
2014-12-22 23:19:29 +00:00
Peter Curd
596cd285fb Updating GetTracksCommand to use new style CreateSuccessResponse 2014-12-20 16:01:57 +00:00
Peter Curd
367724390d Added TotalPlayCount to Track parsing
Added Name as a possible field for album name
Allowed HandleResponse for GetTracksCommand handle single results as an object instead of an array
Added working tests for GetTracksCommand
2014-12-20 15:32:02 +00:00