Merge pull request #142 from klinge/feature/fix-sqlite-tests

Fix for SQLite tests
This commit is contained in:
Rikki Tooley 2019-01-20 16:33:19 +00:00 committed by GitHub
commit 375c11b686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
}