fixed some broken tests.

This commit is contained in:
kay.one
2013-05-10 23:16:10 -07:00
parent 85cd877b0c
commit fc57262c89
6 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ namespace NzbDrone.Core.Datastore
public int Count()
{
return _dataMapper.Query<TModel>().Count();
return _dataMapper.Query<TModel>().GetRowCount();
}
public TModel Get(int id)
@@ -29,7 +29,7 @@ namespace NzbDrone.Core.Datastore.Converters
public object ToDB(object clrValue)
{
if (clrValue != null)
if (clrValue != null && clrValue != DBNull.Value)
{
return ((DateTime)clrValue).ToUniversalTime();
}