You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1014 B
40 lines
1014 B
using FizzWare.NBuilder;
|
|
using FluentAssertions;
|
|
using NUnit.Framework;
|
|
using NzbDrone.Core.Profiles;
|
|
using NzbDrone.Core.Qualities;
|
|
using NzbDrone.Core.Test.Framework;
|
|
using NzbDrone.Core.Tv;
|
|
|
|
namespace NzbDrone.Core.Test.TvTests.SeriesRepositoryTests
|
|
{
|
|
[TestFixture]
|
|
|
|
public class SeriesRepositoryFixture : DbTest<SeriesRepository, Series>
|
|
{
|
|
[Test]
|
|
public void should_lazyload_quality_profile()
|
|
{
|
|
var profile = new Profile
|
|
{
|
|
Items = Qualities.QualityFixture.GetDefaultQualities(Quality.MP3_320, Quality.MP3_256, Quality.MP3_192),
|
|
|
|
Cutoff = Quality.MP3_320,
|
|
Name = "TestProfile"
|
|
};
|
|
|
|
|
|
Mocker.Resolve<ProfileRepository>().Insert(profile);
|
|
|
|
var series = Builder<Series>.CreateNew().BuildNew();
|
|
series.ProfileId = profile.Id;
|
|
|
|
Subject.Insert(series);
|
|
|
|
|
|
StoredModel.Profile.Should().NotBeNull();
|
|
|
|
|
|
}
|
|
}
|
|
} |