mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
RootFolder removed from Series, going back to Path
This commit is contained in:
parent
75def198e4
commit
95a9a297bc
14 changed files with 21 additions and 98 deletions
|
@ -144,25 +144,6 @@ namespace NzbDrone.Core.Test.Datastore
|
|||
Db.All<ScheduledTask>().Single().TypeName.Should().Be("A");
|
||||
Db.All<ScheduledTask>().Single().Interval.Should().Be(12);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_load_lazy_objects()
|
||||
{
|
||||
|
||||
var rootFolder = Db.Insert(new RootFolders.RootFolder() { Path = "C:\test" });
|
||||
|
||||
var series = Builder<Series>.CreateNew()
|
||||
.With(c => c.RootFolderId = rootFolder.Id)
|
||||
.BuildNew();
|
||||
|
||||
Db.Insert(series);
|
||||
|
||||
|
||||
Db.Single<Series>().RootFolder.Should().NotBeNull();
|
||||
Db.Single<Series>().RootFolder.Value.Should().NotBeNull();
|
||||
Db.Single<Series>().RootFolder.Value.Path.Should().Be(rootFolder.Path);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue