From 0c3e53458f723312e66cc600744f6a255e816ae7 Mon Sep 17 00:00:00 2001
From: Keivan Beigi <kay.one@gmail.com>
Date: Wed, 15 May 2013 17:16:21 -0700
Subject: [PATCH] added ApplicationUpdateCommand

---
 .../UpdateTests/UpdateServiceFixture.cs          | 16 ++++++++--------
 NzbDrone.Core/NzbDrone.Core.csproj               |  2 +-
 ...ateCommand.cs => ApplicationUpdateCommand.cs} |  2 +-
 3 files changed, 10 insertions(+), 10 deletions(-)
 rename NzbDrone.Core/Update/Commands/{CheckForUpdateCommand.cs => ApplicationUpdateCommand.cs} (62%)

diff --git a/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs b/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs
index 32255bfad..5bcf68445 100644
--- a/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs
+++ b/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs
@@ -47,7 +47,7 @@ namespace NzbDrone.Core.Test.UpdateTests
         {
             Mocker.GetMock<IDiskProvider>().Setup(c => c.FolderExists(_sandboxFolder)).Returns(true);
 
-            Subject.Execute(new CheckForUpdateCommand());
+            Subject.Execute(new ApplicationUpdateCommand());
 
             Mocker.GetMock<IDiskProvider>().Verify(c => c.DeleteFolder(_sandboxFolder, true));
         }
@@ -57,7 +57,7 @@ namespace NzbDrone.Core.Test.UpdateTests
         {
             Mocker.GetMock<IDiskProvider>().Setup(c => c.FolderExists(_sandboxFolder)).Returns(false);
 
-            Subject.Execute(new CheckForUpdateCommand());
+            Subject.Execute(new ApplicationUpdateCommand());
 
 
             Mocker.GetMock<IDiskProvider>().Verify(c => c.DeleteFolder(_sandboxFolder, true), Times.Never());
@@ -69,7 +69,7 @@ namespace NzbDrone.Core.Test.UpdateTests
         {
             var updateArchive = Path.Combine(_sandboxFolder, _updatePackage.FileName);
 
-            Subject.Execute(new CheckForUpdateCommand());
+            Subject.Execute(new ApplicationUpdateCommand());
 
 
             Mocker.GetMock<IHttpProvider>().Verify(c => c.DownloadFile(_updatePackage.Url, updateArchive));
@@ -80,7 +80,7 @@ namespace NzbDrone.Core.Test.UpdateTests
         {
             var updateArchive = Path.Combine(_sandboxFolder, _updatePackage.FileName);
 
-            Subject.Execute(new CheckForUpdateCommand());
+            Subject.Execute(new ApplicationUpdateCommand());
 
 
             Mocker.GetMock<ArchiveProvider>().Verify(c => c.ExtractArchive(updateArchive, _sandboxFolder));
@@ -91,7 +91,7 @@ namespace NzbDrone.Core.Test.UpdateTests
         {
             var updateClientFolder = Mocker.GetMock<IEnvironmentProvider>().Object.GetUpdateClientFolder();
 
-            Subject.Execute(new CheckForUpdateCommand());
+            Subject.Execute(new ApplicationUpdateCommand());
 
 
 
@@ -105,7 +105,7 @@ namespace NzbDrone.Core.Test.UpdateTests
 
 
 
-            Subject.Execute(new CheckForUpdateCommand());
+            Subject.Execute(new ApplicationUpdateCommand());
 
 
 
@@ -121,7 +121,7 @@ namespace NzbDrone.Core.Test.UpdateTests
         {
             Mocker.GetMock<IUpdatePackageProvider>().Setup(c => c.GetLatestUpdate()).Returns<UpdatePackage>(null);
 
-            Subject.Execute(new CheckForUpdateCommand());
+            Subject.Execute(new ApplicationUpdateCommand());
 
 
             ExceptionVerification.AssertNoUnexcpectedLogs();
@@ -140,7 +140,7 @@ namespace NzbDrone.Core.Test.UpdateTests
             Mocker.Resolve<DiskProvider>();
             Mocker.Resolve<ArchiveProvider>();
 
-            Subject.Execute(new CheckForUpdateCommand());
+            Subject.Execute(new ApplicationUpdateCommand());
 
 
             updateSubFolder.Refresh();
diff --git a/NzbDrone.Core/NzbDrone.Core.csproj b/NzbDrone.Core/NzbDrone.Core.csproj
index 4e9c60820..4f070b805 100644
--- a/NzbDrone.Core/NzbDrone.Core.csproj
+++ b/NzbDrone.Core/NzbDrone.Core.csproj
@@ -505,7 +505,7 @@
     <Compile Include="Tv\Series.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="Tv\SeriesStatusType.cs" />
-    <Compile Include="Update\Commands\CheckForUpdateCommand.cs" />
+    <Compile Include="Update\Commands\ApplicationUpdateCommand.cs" />
     <Compile Include="Update\UpdatePackageProvider.cs" />
     <Compile Include="Update\UpdatePackage.cs" />
     <Compile Include="Update\UpdateService.cs" />
diff --git a/NzbDrone.Core/Update/Commands/CheckForUpdateCommand.cs b/NzbDrone.Core/Update/Commands/ApplicationUpdateCommand.cs
similarity index 62%
rename from NzbDrone.Core/Update/Commands/CheckForUpdateCommand.cs
rename to NzbDrone.Core/Update/Commands/ApplicationUpdateCommand.cs
index 1bd99877e..bbbf6a1f3 100644
--- a/NzbDrone.Core/Update/Commands/CheckForUpdateCommand.cs
+++ b/NzbDrone.Core/Update/Commands/ApplicationUpdateCommand.cs
@@ -2,7 +2,7 @@
 
 namespace NzbDrone.Core.Update.Commands
 {
-    public class CheckForUpdateCommand : ICommand
+    public class ApplicationUpdateCommand : ICommand
     {
     }
 }
\ No newline at end of file