mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-16 23:13:07 +01:00
Merge pull request #142 from klinge/feature/fix-sqlite-tests
Fix for SQLite tests
This commit is contained in:
commit
375c11b686
@ -3,6 +3,7 @@
|
||||
using System.Net.Http;
|
||||
using IF.Lastfm.Core.Scrobblers;
|
||||
using IF.Lastfm.Core.Tests.Scrobblers;
|
||||
using NUnit.Framework;
|
||||
using SQLite;
|
||||
|
||||
namespace IF.Lastfm.SQLite.Tests.Integration
|
||||
@ -33,11 +34,19 @@ public override void Cleanup()
|
||||
|
||||
base.Cleanup();
|
||||
}
|
||||
|
||||
|
||||
protected override ScrobblerBase GetScrobbler()
|
||||
{
|
||||
var httpClient = new HttpClient(FakeResponseHandler);
|
||||
return new SQLiteScrobbler(MockAuth.Object, _dbPath, httpClient);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestScrobbler()
|
||||
{
|
||||
var scrobbler = GetScrobbler();
|
||||
Assert.IsTrue(scrobbler.Auth.Authenticated);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user