From 733ebe3cfa553a5777b7fd01666c15ecb64e20a2 Mon Sep 17 00:00:00 2001
From: Mark McDowall <markus.mcd5@gmail.com>
Date: Sat, 14 Apr 2012 18:09:51 -0700
Subject: [PATCH] Renamed misnamed Decision Engine files

---
 .../QualityAllowedByProfileSpecification.cs   | 22 +++++--------------
 .../QualityUpgradeSpecification.cs            | 22 ++++++++++++++-----
 2 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/NzbDrone.Core/Providers/DecisionEngine/QualityAllowedByProfileSpecification.cs b/NzbDrone.Core/Providers/DecisionEngine/QualityAllowedByProfileSpecification.cs
index f578a710c..db32aa20a 100644
--- a/NzbDrone.Core/Providers/DecisionEngine/QualityAllowedByProfileSpecification.cs
+++ b/NzbDrone.Core/Providers/DecisionEngine/QualityAllowedByProfileSpecification.cs
@@ -1,31 +1,19 @@
 using System.Linq;
 using NLog;
 using NzbDrone.Core.Model;
-using NzbDrone.Core.Repository.Quality;
 
 namespace NzbDrone.Core.Providers.DecisionEngine
 {
-    public class QualityUpgradeSpecification
+    public class QualityAllowedByProfileSpecification
     {
         private static readonly Logger logger = LogManager.GetCurrentClassLogger();
 
-        public virtual bool IsSatisfiedBy(Quality currentQuality, Quality newQuality, QualityTypes cutOff)
+        public virtual bool IsSatisfiedBy(EpisodeParseResult subject)
         {
-            if (currentQuality >= newQuality)
+            logger.Trace("Checking if report meets quality requirements. {0}", subject.Quality);
+            if (!subject.Series.QualityProfile.Allowed.Contains(subject.Quality.QualityType))
             {
-                logger.Trace("existing item has better or equal quality. skipping");
-                return false;
-            }
-
-            if (currentQuality.QualityType == newQuality.QualityType && newQuality.Proper)
-            {
-                logger.Trace("Upgrading existing item to proper.");
-                return true;
-            }
-
-            if (currentQuality.QualityType >= cutOff)
-            {
-                logger.Trace("Existing item meets cut-off. skipping.");
+                logger.Trace("Quality {0} rejected by Series' quality profile", subject.Quality);
                 return false;
             }
 
diff --git a/NzbDrone.Core/Providers/DecisionEngine/QualityUpgradeSpecification.cs b/NzbDrone.Core/Providers/DecisionEngine/QualityUpgradeSpecification.cs
index db32aa20a..f578a710c 100644
--- a/NzbDrone.Core/Providers/DecisionEngine/QualityUpgradeSpecification.cs
+++ b/NzbDrone.Core/Providers/DecisionEngine/QualityUpgradeSpecification.cs
@@ -1,19 +1,31 @@
 using System.Linq;
 using NLog;
 using NzbDrone.Core.Model;
+using NzbDrone.Core.Repository.Quality;
 
 namespace NzbDrone.Core.Providers.DecisionEngine
 {
-    public class QualityAllowedByProfileSpecification
+    public class QualityUpgradeSpecification
     {
         private static readonly Logger logger = LogManager.GetCurrentClassLogger();
 
-        public virtual bool IsSatisfiedBy(EpisodeParseResult subject)
+        public virtual bool IsSatisfiedBy(Quality currentQuality, Quality newQuality, QualityTypes cutOff)
         {
-            logger.Trace("Checking if report meets quality requirements. {0}", subject.Quality);
-            if (!subject.Series.QualityProfile.Allowed.Contains(subject.Quality.QualityType))
+            if (currentQuality >= newQuality)
             {
-                logger.Trace("Quality {0} rejected by Series' quality profile", subject.Quality);
+                logger.Trace("existing item has better or equal quality. skipping");
+                return false;
+            }
+
+            if (currentQuality.QualityType == newQuality.QualityType && newQuality.Proper)
+            {
+                logger.Trace("Upgrading existing item to proper.");
+                return true;
+            }
+
+            if (currentQuality.QualityType >= cutOff)
+            {
+                logger.Trace("Existing item meets cut-off. skipping.");
                 return false;
             }