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.
|
|
|
|
using FizzWare.NBuilder;
|
|
|
|
|
using FluentAssertions;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using NzbDrone.Core.Tv;
|
|
|
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
|
using NzbDrone.Core.Tv.Events;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Test.TvTests.SeriesServiceTests
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
public class AddSeriesFixture : CoreTest<SeriesService>
|
|
|
|
|
{
|
|
|
|
|
private Series fakeSeries;
|
|
|
|
|
|
|
|
|
|
[SetUp]
|
|
|
|
|
public void Setup()
|
|
|
|
|
{
|
|
|
|
|
fakeSeries = Builder<Series>.CreateNew().Build();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void series_added_event_should_have_proper_path()
|
|
|
|
|
{
|
|
|
|
|
fakeSeries.Path = null;
|
|
|
|
|
fakeSeries.RootFolderPath = @"C:\Test\TV";
|
|
|
|
|
|
|
|
|
|
var series = Subject.AddSeries(fakeSeries);
|
|
|
|
|
|
|
|
|
|
series.Path.Should().NotBeNull();
|
|
|
|
|
|
|
|
|
|
VerifyEventPublished<SeriesAddedEvent>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
} |