mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
ReSharper code cleanup
This commit is contained in:
parent
8cade435d1
commit
e896af5cd0
138 changed files with 2368 additions and 2218 deletions
|
@ -1,40 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using FizzWare.NBuilder;
|
||||
using MbUnit.Framework;
|
||||
using NzbDrone.Core.Repository;
|
||||
using NzbDrone.Core.Repository.Quality;
|
||||
using System.Linq;
|
||||
using TvdbLib.Data;
|
||||
|
||||
namespace NzbDrone.Core.Test
|
||||
{
|
||||
[TestFixture]
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
public class QualityProfileTest
|
||||
{
|
||||
/// <summary>
|
||||
/// Test_s the storage.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
///<summary>
|
||||
/// Test_s the storage.
|
||||
///</summary>
|
||||
[Test]
|
||||
public void Test_Storage()
|
||||
{
|
||||
|
||||
//Arrange
|
||||
var repo = MockLib.GetEmptyRepository();
|
||||
var testProfile = new QualityProfile
|
||||
{
|
||||
Name = Guid.NewGuid().ToString(),
|
||||
Cutoff = QualityTypes.TV,
|
||||
Allowed = new List<QualityTypes>() { QualityTypes.HDTV, QualityTypes.DVD },
|
||||
Allowed = new List<QualityTypes> {QualityTypes.HDTV, QualityTypes.DVD},
|
||||
};
|
||||
|
||||
//Act
|
||||
var id = (int)repo.Add(testProfile);
|
||||
var id = (int) repo.Add(testProfile);
|
||||
var fetch = repo.Single<QualityProfile>(c => c.QualityProfileId == id);
|
||||
|
||||
//Assert
|
||||
|
@ -51,19 +45,19 @@ namespace NzbDrone.Core.Test
|
|||
var repo = MockLib.GetEmptyRepository();
|
||||
|
||||
var testProfile = new QualityProfile
|
||||
{
|
||||
Name = Guid.NewGuid().ToString(),
|
||||
Cutoff = QualityTypes.TV,
|
||||
Allowed = new List<QualityTypes>() { QualityTypes.HDTV, QualityTypes.DVD },
|
||||
};
|
||||
{
|
||||
Name = Guid.NewGuid().ToString(),
|
||||
Cutoff = QualityTypes.TV,
|
||||
Allowed = new List<QualityTypes> {QualityTypes.HDTV, QualityTypes.DVD},
|
||||
};
|
||||
|
||||
|
||||
var profileId = (int)repo.Add(testProfile);
|
||||
var profileId = (int) repo.Add(testProfile);
|
||||
|
||||
var series = Builder<Series>.CreateNew().Build();
|
||||
series.QualityProfileId = profileId;
|
||||
|
||||
var seriesID = (int)repo.Add(series);
|
||||
var seriesID = (int) repo.Add(series);
|
||||
|
||||
|
||||
var result = repo.All<Series>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue