should be able to queue report using api.

This commit is contained in:
kay.one 2013-06-09 13:50:57 -07:00
commit ac3582d5c4
22 changed files with 91 additions and 270 deletions

View file

@ -101,6 +101,19 @@ namespace NzbDrone.Core.Test.Datastore
StoredModel.LastExecution.ToLongTimeString().Should().Be(storedTime.ToLongTimeString());
}
[Test]
public void should_convert_all_dates_to_utc()
{
var storedTime = DateTime.Now;
_sampleType.LastExecution = storedTime;
Subject.Insert(_sampleType);
StoredModel.LastExecution.Kind.Should().Be(DateTimeKind.Utc);
StoredModel.LastExecution.ToLongTimeString().Should().Be(storedTime.ToUniversalTime().ToLongTimeString());
}
[Test]
public void should_have_id_when_returned_from_database()
{