Fixed: Remove BulkImportFixture, Obsolete.

#166
This commit is contained in:
Qstick 2017-12-24 23:58:41 -05:00
parent fdb7c96ffa
commit aa734bdc25
2 changed files with 0 additions and 52 deletions

View File

@ -1,51 +0,0 @@
using FizzWare.NBuilder;
using FluentAssertions;
using NUnit.Framework;
using Moq;
using NzbDrone.Core.Organizer;
using NzbDrone.Core.Music;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Music.Events;
using System.Collections.Generic;
namespace NzbDrone.Core.Test.BulkImport
{
[TestFixture]
public class BulkImportFixture : CoreTest<AddArtistService>
{
private List<Artist> fakeArtists;
private FluentValidation.Results.ValidationResult fakeValidation;
[SetUp]
public void Setup()
{
fakeArtists = Builder<Artist>.CreateListOfSize(3).BuildList();
fakeArtists.ForEach(m =>
{
m.Path = null;
m.RootFolderPath = @"C:\Test\Music";
});
fakeValidation = Builder<FluentValidation.Results.ValidationResult>.CreateNew().Build();
}
[Test]
public void artist_added_event_should_have_proper_path()
{
Mocker.GetMock<IBuildFileNames>()
.Setup(s => s.GetArtistFolder(It.IsAny<Artist>(), null))
.Returns((Artist m, NamingConfig n) => m.Name);
Mocker.GetMock<IAddArtistValidator>()
.Setup(s => s.Validate(It.IsAny<Artist>()))
.Returns(fakeValidation);
var artists = Subject.AddArtists(fakeArtists);
foreach (Artist artist in artists)
{
artist.Path.Should().NotBeNullOrEmpty();
}
}
}
}

View File

@ -101,7 +101,6 @@
<Compile Include="ArtistStatsTests\ArtistStatisticsFixture.cs" /> <Compile Include="ArtistStatsTests\ArtistStatisticsFixture.cs" />
<Compile Include="Blacklisting\BlacklistRepositoryFixture.cs" /> <Compile Include="Blacklisting\BlacklistRepositoryFixture.cs" />
<Compile Include="Blacklisting\BlacklistServiceFixture.cs" /> <Compile Include="Blacklisting\BlacklistServiceFixture.cs" />
<Compile Include="BulkImport\BulkImportFixture.cs" />
<Compile Include="Configuration\ConfigCachingFixture.cs" /> <Compile Include="Configuration\ConfigCachingFixture.cs" />
<Compile Include="Configuration\ConfigServiceFixture.cs" /> <Compile Include="Configuration\ConfigServiceFixture.cs" />
<Compile Include="DataAugmentation\DailySeries\DailySeriesDataProxyFixture.cs" /> <Compile Include="DataAugmentation\DailySeries\DailySeriesDataProxyFixture.cs" />