Method, Variable, Class Renames in Readarr.Core

Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
Qstick
2020-05-12 22:48:46 -04:00
parent 56aedcc467
commit 8547af9fae
572 changed files with 6584 additions and 6597 deletions

View File

@@ -2,8 +2,8 @@ using System.Collections.Generic;
using System.Linq;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Core.Books;
using NzbDrone.Core.MetadataSource;
using NzbDrone.Core.Music;
using NzbDrone.Core.Test.Framework;
namespace NzbDrone.Core.Test.MetadataSource
@@ -30,7 +30,7 @@ namespace NzbDrone.Core.Test.MetadataSource
WithSeries("Talking Dead");
WithSeries("The Walking Dead");
_artist.Sort(new SearchArtistComparer("the walking dead"));
_artist.Sort(new SearchAuthorComparer("the walking dead"));
_artist.First().Name.Should().Be("The Walking Dead");
}
@@ -41,7 +41,7 @@ namespace NzbDrone.Core.Test.MetadataSource
WithSeries("Talking Dead");
WithSeries("The Walking Dead");
_artist.Sort(new SearchArtistComparer("walking dead"));
_artist.Sort(new SearchAuthorComparer("walking dead"));
_artist.First().Name.Should().Be("The Walking Dead");
}
@@ -52,7 +52,7 @@ namespace NzbDrone.Core.Test.MetadataSource
WithSeries("The Blacklist");
WithSeries("Blacklist");
_artist.Sort(new SearchArtistComparer("blacklist"));
_artist.Sort(new SearchAuthorComparer("blacklist"));
_artist.First().Name.Should().Be("Blacklist");
}
@@ -63,7 +63,7 @@ namespace NzbDrone.Core.Test.MetadataSource
WithSeries("Blacklist");
WithSeries("The Blacklist");
_artist.Sort(new SearchArtistComparer("the blacklist"));
_artist.Sort(new SearchAuthorComparer("the blacklist"));
_artist.First().Name.Should().Be("The Blacklist");
}

View File

@@ -3,9 +3,9 @@ using System.Collections.Generic;
using FluentAssertions;
using Moq;
using NUnit.Framework;
using NzbDrone.Core.Books;
using NzbDrone.Core.Exceptions;
using NzbDrone.Core.MetadataSource.SkyHook;
using NzbDrone.Core.Music;
using NzbDrone.Core.Profiles.Metadata;
using NzbDrone.Core.Test.Framework;
@@ -56,20 +56,20 @@ namespace NzbDrone.Core.Test.MetadataSource.SkyHook
[Test]
public void getting_details_of_invalid_artist()
{
Assert.Throws<ArtistNotFoundException>(() => Subject.GetAuthorInfo("66c66aaa-6e2f-4930-8610-912e24c63ed1"));
Assert.Throws<AuthorNotFoundException>(() => Subject.GetAuthorInfo("66c66aaa-6e2f-4930-8610-912e24c63ed1"));
}
[Test]
public void getting_details_of_invalid_album()
{
Assert.Throws<AlbumNotFoundException>(() => Subject.GetBookInfo("66c66aaa-6e2f-4930-8610-912e24c63ed1"));
Assert.Throws<BookNotFoundException>(() => Subject.GetBookInfo("66c66aaa-6e2f-4930-8610-912e24c63ed1"));
}
private void ValidateAuthor(Author author)
{
author.Should().NotBeNull();
author.Name.Should().NotBeNullOrWhiteSpace();
author.CleanName.Should().Be(Parser.Parser.CleanArtistName(author.Name));
author.CleanName.Should().Be(Parser.Parser.CleanAuthorName(author.Name));
author.SortName.Should().Be(Parser.Parser.NormalizeTitle(author.Name));
author.Metadata.Value.TitleSlug.Should().NotBeNullOrWhiteSpace();
author.Metadata.Value.Overview.Should().NotBeNullOrWhiteSpace();

View File

@@ -3,8 +3,8 @@ using System.Collections.Generic;
using FluentAssertions;
using Moq;
using NUnit.Framework;
using NzbDrone.Core.Books;
using NzbDrone.Core.MetadataSource.SkyHook;
using NzbDrone.Core.Music;
using NzbDrone.Core.Profiles.Metadata;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Test.Common;