* Stylecop Rules and Fixes
This commit is contained in:
Qstick
2020-01-03 07:49:24 -05:00
committed by GitHub
parent 63d669178d
commit f77a2feeef
1307 changed files with 8704 additions and 7404 deletions
@@ -1,11 +1,11 @@
using System.Collections.Generic;
using System.Linq;
using FizzWare.NBuilder;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Music;
using NzbDrone.Common.Extensions;
using System.Linq;
using NzbDrone.Core.Music;
using NzbDrone.Core.Test.Framework;
namespace NzbDrone.Core.Test.MusicTests.ArtistRepositoryTests
{
@@ -22,7 +22,7 @@ namespace NzbDrone.Core.Test.MusicTests.ArtistRepositoryTests
_artistMetadataRepo = Mocker.Resolve<ArtistMetadataRepository>();
_metadataList = Builder<ArtistMetadata>.CreateListOfSize(10).BuildList();
}
[Test]
public void upsert_many_should_insert_list_of_new()
{
@@ -30,12 +30,12 @@ namespace NzbDrone.Core.Test.MusicTests.ArtistRepositoryTests
AllStoredModels.Should().HaveCount(_metadataList.Count);
updated.Should().BeTrue();
}
[Test]
public void upsert_many_should_upsert_existing_with_id_0()
{
var _clone = _metadataList.JsonClone();
var updated = _artistMetadataRepo.UpsertMany(_clone);
var clone = _metadataList.JsonClone();
var updated = _artistMetadataRepo.UpsertMany(clone);
updated.Should().BeTrue();
AllStoredModels.Should().HaveCount(_metadataList.Count);
@@ -48,11 +48,11 @@ namespace NzbDrone.Core.Test.MusicTests.ArtistRepositoryTests
[Test]
public void upsert_many_should_upsert_mixed_list_of_old_and_new()
{
var _clone = _metadataList.Take(5).ToList().JsonClone();
var updated = _artistMetadataRepo.UpsertMany(_clone);
var clone = _metadataList.Take(5).ToList().JsonClone();
var updated = _artistMetadataRepo.UpsertMany(clone);
updated.Should().BeTrue();
AllStoredModels.Should().HaveCount(_clone.Count);
AllStoredModels.Should().HaveCount(clone.Count);
updated = _artistMetadataRepo.UpsertMany(_metadataList);
updated.Should().BeTrue();