removed all the jobs.

This commit is contained in:
Keivan Beigi 2013-05-06 17:39:33 -07:00
commit ec58b8b595
42 changed files with 122 additions and 1599 deletions

View file

@ -106,21 +106,19 @@ namespace NzbDrone.Core.Test.Datastore
{
var childModel = new JobDefinition
{
Type = "Address",
Name = "Name",
Name = "Address",
Interval = 12
};
Subject.Insert(childModel);
childModel.Type = "A";
childModel.Name = "B";
childModel.Name = "A";
childModel.Interval = 0;
Subject.SetFields(childModel, t => t.Name);
Db.All<JobDefinition>().Single().Type.Should().Be("Address");
Db.All<JobDefinition>().Single().Name.Should().Be("Address");
Db.All<JobDefinition>().Single().Name.Should().Be("B");
Db.All<JobDefinition>().Single().Interval.Should().Be(12);
}