mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Clean up existing tests to use our new internal classes
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Squirrel
|
||||
/// will return values from 0-100 and Complete, or Throw</param>
|
||||
/// <returns>An UpdateInfo object representing the updates to install.
|
||||
/// </returns>
|
||||
Task<UpdateInfo> CheckForUpdate(bool ignoreDeltaUpdates, Action<int> progress = null);
|
||||
Task<UpdateInfo> CheckForUpdate(bool ignoreDeltaUpdates = false, Action<int> progress = null);
|
||||
|
||||
/// <summary>
|
||||
/// Download a list of releases into the local package directory.
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Squirrel
|
||||
{
|
||||
public sealed partial class UpdateManager
|
||||
{
|
||||
class ApplyReleasesImpl : IEnableLogger
|
||||
internal class ApplyReleasesImpl : IEnableLogger
|
||||
{
|
||||
// TODO: Kill this entire concept
|
||||
readonly FrameworkVersion appFrameworkVersion = FrameworkVersion.Net45;
|
||||
@@ -309,7 +309,7 @@ namespace Squirrel
|
||||
});
|
||||
}
|
||||
|
||||
async Task updateLocalReleasesFile()
|
||||
internal async Task updateLocalReleasesFile()
|
||||
{
|
||||
await Task.Run(() => ReleaseEntry.BuildReleasesFile(Utility.PackageDirectoryForAppDir(rootAppDirectory)));
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Squirrel
|
||||
{
|
||||
public sealed partial class UpdateManager
|
||||
{
|
||||
class CheckForUpdateImpl : IEnableLogger
|
||||
internal class CheckForUpdateImpl : IEnableLogger
|
||||
{
|
||||
readonly string rootAppDirectory;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Squirrel
|
||||
{
|
||||
public sealed partial class UpdateManager
|
||||
{
|
||||
class DownloadReleasesImpl : IEnableLogger
|
||||
internal class DownloadReleasesImpl : IEnableLogger
|
||||
{
|
||||
readonly string rootAppDirectory;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Squirrel
|
||||
this.urlDownloader = urlDownloader ?? new FileDownloader();
|
||||
}
|
||||
|
||||
public async Task<UpdateInfo> CheckForUpdate(bool ignoreDeltaUpdates, Action<int> progress = null)
|
||||
public async Task<UpdateInfo> CheckForUpdate(bool ignoreDeltaUpdates = false, Action<int> progress = null)
|
||||
{
|
||||
var checkForUpdate = new CheckForUpdateImpl(rootAppDirectory);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user