Cleanup Conflicts in Sonarr/Lidarr Pulls

Co-Authored-By: Robin Dadswell <19610103+RobinDadswell@users.noreply.github.com>
This commit is contained in:
Qstick
2021-01-24 02:22:50 -05:00
parent ffc12656ee
commit 93ba5ade9e
298 changed files with 4460 additions and 4508 deletions
@@ -99,13 +99,13 @@ namespace NzbDrone.Core.Test.Profiles.Metadata
}
[Test]
public void should_not_be_able_to_delete_profile_if_assigned_to_artist()
public void should_not_be_able_to_delete_profile_if_assigned_to_author()
{
var profile = Builder<MetadataProfile>.CreateNew()
.With(p => p.Id = 2)
.Build();
var artistList = Builder<Author>.CreateListOfSize(3)
var authorList = Builder<Author>.CreateListOfSize(3)
.Random(1)
.With(c => c.MetadataProfileId = profile.Id)
.Build().ToList();
@@ -120,7 +120,7 @@ namespace NzbDrone.Core.Test.Profiles.Metadata
.With(f => f.DefaultMetadataProfileId = 1)
.BuildList();
Mocker.GetMock<IAuthorService>().Setup(c => c.GetAllAuthors()).Returns(artistList);
Mocker.GetMock<IAuthorService>().Setup(c => c.GetAllAuthors()).Returns(authorList);
Mocker.GetMock<IImportListFactory>().Setup(c => c.All()).Returns(importLists);
Mocker.GetMock<IRootFolderService>().Setup(c => c.All()).Returns(rootFolders);
Mocker.GetMock<IMetadataProfileRepository>().Setup(c => c.Get(profile.Id)).Returns(profile);
@@ -137,7 +137,7 @@ namespace NzbDrone.Core.Test.Profiles.Metadata
.With(p => p.Id = 2)
.Build();
var artistList = Builder<Author>.CreateListOfSize(3)
var authorList = Builder<Author>.CreateListOfSize(3)
.All()
.With(c => c.MetadataProfileId = 1)
.Build().ToList();
@@ -152,7 +152,7 @@ namespace NzbDrone.Core.Test.Profiles.Metadata
.With(f => f.DefaultMetadataProfileId = 1)
.BuildList();
Mocker.GetMock<IAuthorService>().Setup(c => c.GetAllAuthors()).Returns(artistList);
Mocker.GetMock<IAuthorService>().Setup(c => c.GetAllAuthors()).Returns(authorList);
Mocker.GetMock<IImportListFactory>().Setup(c => c.All()).Returns(importLists);
Mocker.GetMock<IRootFolderService>().Setup(c => c.All()).Returns(rootFolders);
Mocker.GetMock<IMetadataProfileRepository>().Setup(c => c.Get(profile.Id)).Returns(profile);
@@ -169,7 +169,7 @@ namespace NzbDrone.Core.Test.Profiles.Metadata
.With(p => p.Id = 2)
.Build();
var artistList = Builder<Author>.CreateListOfSize(3)
var authorList = Builder<Author>.CreateListOfSize(3)
.All()
.With(c => c.MetadataProfileId = 1)
.Build().ToList();
@@ -184,7 +184,7 @@ namespace NzbDrone.Core.Test.Profiles.Metadata
.With(f => f.DefaultMetadataProfileId = profile.Id)
.BuildList();
Mocker.GetMock<IAuthorService>().Setup(c => c.GetAllAuthors()).Returns(artistList);
Mocker.GetMock<IAuthorService>().Setup(c => c.GetAllAuthors()).Returns(authorList);
Mocker.GetMock<IImportListFactory>().Setup(c => c.All()).Returns(importLists);
Mocker.GetMock<IRootFolderService>().Setup(c => c.All()).Returns(rootFolders);
Mocker.GetMock<IMetadataProfileRepository>().Setup(c => c.Get(profile.Id)).Returns(profile);
@@ -195,13 +195,13 @@ namespace NzbDrone.Core.Test.Profiles.Metadata
}
[Test]
public void should_delete_profile_if_not_assigned_to_artist_import_list_or_root_folder()
public void should_delete_profile_if_not_assigned_to_author_import_list_or_root_folder()
{
var profile = Builder<MetadataProfile>.CreateNew()
.With(p => p.Id = 1)
.Build();
var artistList = Builder<Author>.CreateListOfSize(3)
var authorList = Builder<Author>.CreateListOfSize(3)
.All()
.With(c => c.MetadataProfileId = 2)
.Build().ToList();
@@ -216,7 +216,7 @@ namespace NzbDrone.Core.Test.Profiles.Metadata
.With(f => f.DefaultMetadataProfileId = 2)
.BuildList();
Mocker.GetMock<IAuthorService>().Setup(c => c.GetAllAuthors()).Returns(artistList);
Mocker.GetMock<IAuthorService>().Setup(c => c.GetAllAuthors()).Returns(authorList);
Mocker.GetMock<IImportListFactory>().Setup(c => c.All()).Returns(importLists);
Mocker.GetMock<IRootFolderService>().Setup(c => c.All()).Returns(rootFolders);
Mocker.GetMock<IMetadataProfileRepository>().Setup(c => c.Get(profile.Id)).Returns(profile);