mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 09:37:12 +00:00
Removed lazy loading test for history
This commit is contained in:
parent
d320c2b6a9
commit
2912561d0e
1 changed files with 23 additions and 23 deletions
|
@ -72,29 +72,29 @@ public void one_to_many()
|
||||||
loadedSeries.Covers.Value.Should().HaveSameCount(covers);
|
loadedSeries.Covers.Value.Should().HaveSameCount(covers);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
[Test]
|
// [Test]
|
||||||
public void one_to_one()
|
// public void one_to_one()
|
||||||
{
|
// {
|
||||||
var episode = Builder<Episode>.CreateNew()
|
// var episode = Builder<Episode>.CreateNew()
|
||||||
.With(c => c.Id = 0)
|
// .With(c => c.Id = 0)
|
||||||
.Build();
|
// .Build();
|
||||||
|
//
|
||||||
Db.Insert(episode);
|
// Db.Insert(episode);
|
||||||
|
//
|
||||||
|
//
|
||||||
var history = Builder<History.History>.CreateNew()
|
// var history = Builder<History.History>.CreateNew()
|
||||||
.With(c => c.Id = 0)
|
// .With(c => c.Id = 0)
|
||||||
.With(c => c.EpisodeId = episode.Id)
|
// .With(c => c.EpisodeId = episode.Id)
|
||||||
.With(c => c.Quality = new QualityModel())
|
// .With(c => c.Quality = new QualityModel())
|
||||||
.Build();
|
// .Build();
|
||||||
|
//
|
||||||
Db.Insert(history);
|
// Db.Insert(history);
|
||||||
|
//
|
||||||
var loadedEpisode = Db.Single<History.History>().Episode.Value;
|
// var loadedEpisode = Db.Single<History.History>().Episode.Value;
|
||||||
|
//
|
||||||
loadedEpisode.Should().NotBeNull();
|
// loadedEpisode.Should().NotBeNull();
|
||||||
loadedEpisode.ShouldHave().AllProperties().But(c => c.SeriesTitle).EqualTo(episode);
|
// loadedEpisode.ShouldHave().AllProperties().But(c => c.SeriesTitle).EqualTo(episode);
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
Loading…
Reference in a new issue