mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Removed lazy loading test for history
This commit is contained in:
parent
d320c2b6a9
commit
2912561d0e
@ -72,29 +72,29 @@ public void one_to_many()
|
||||
loadedSeries.Covers.Value.Should().HaveSameCount(covers);
|
||||
}*/
|
||||
|
||||
[Test]
|
||||
public void one_to_one()
|
||||
{
|
||||
var episode = Builder<Episode>.CreateNew()
|
||||
.With(c => c.Id = 0)
|
||||
.Build();
|
||||
|
||||
Db.Insert(episode);
|
||||
|
||||
|
||||
var history = Builder<History.History>.CreateNew()
|
||||
.With(c => c.Id = 0)
|
||||
.With(c => c.EpisodeId = episode.Id)
|
||||
.With(c => c.Quality = new QualityModel())
|
||||
.Build();
|
||||
|
||||
Db.Insert(history);
|
||||
|
||||
var loadedEpisode = Db.Single<History.History>().Episode.Value;
|
||||
|
||||
loadedEpisode.Should().NotBeNull();
|
||||
loadedEpisode.ShouldHave().AllProperties().But(c => c.SeriesTitle).EqualTo(episode);
|
||||
}
|
||||
// [Test]
|
||||
// public void one_to_one()
|
||||
// {
|
||||
// var episode = Builder<Episode>.CreateNew()
|
||||
// .With(c => c.Id = 0)
|
||||
// .Build();
|
||||
//
|
||||
// Db.Insert(episode);
|
||||
//
|
||||
//
|
||||
// var history = Builder<History.History>.CreateNew()
|
||||
// .With(c => c.Id = 0)
|
||||
// .With(c => c.EpisodeId = episode.Id)
|
||||
// .With(c => c.Quality = new QualityModel())
|
||||
// .Build();
|
||||
//
|
||||
// Db.Insert(history);
|
||||
//
|
||||
// var loadedEpisode = Db.Single<History.History>().Episode.Value;
|
||||
//
|
||||
// loadedEpisode.Should().NotBeNull();
|
||||
// loadedEpisode.ShouldHave().AllProperties().But(c => c.SeriesTitle).EqualTo(episode);
|
||||
// }
|
||||
|
||||
|
||||
[Test]
|
||||
|
Loading…
Reference in New Issue
Block a user