Added some tests and fixed the issue where the DB would get created in the wrong place depending on how you launched the application

This commit is contained in:
tidusjar 2016-03-29 14:13:13 +01:00
parent 1f9ed51320
commit e2aa4016a8
8 changed files with 221 additions and 35 deletions

View file

@ -79,6 +79,10 @@ namespace PlexRequests.Core
public RequestedModel Get(int id)
{
var blob = Repo.Get(id);
if (blob == null)
{
return new RequestedModel();
}
var model = ByteConverterHelper.ReturnObject<RequestedModel>(blob.Content);
return model;
}