Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Device Restore #3953

Merged
merged 13 commits into from
Oct 25, 2024
21 changes: 0 additions & 21 deletions tools/DevDiagnostics/DevHome.DevDiagnostics/Models/RestoreState.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
using DevHome.SetupFlow.ViewModels;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Internal.Windows.DevHome.Helpers.Restore;
using Moq;

namespace DevHome.SetupFlow.UnitTest;
Expand All @@ -26,8 +25,6 @@ public class BaseSetupFlowTest

protected Mock<IThemeSelectorService> ThemeSelectorService { get; private set; }

protected Mock<IRestoreInfo> RestoreInfo { get; private set; }

protected Mock<ISetupFlowStringResource> StringResource { get; private set; }

protected Mock<ILocalSettingsService> LocalSettingsService { get; private set; }
Expand All @@ -40,7 +37,6 @@ public void TestInitialize()
{
WindowsPackageManager = new Mock<IWinGet>();
ThemeSelectorService = new Mock<IThemeSelectorService>();
RestoreInfo = new Mock<IRestoreInfo>();
StringResource = new Mock<ISetupFlowStringResource>();
LocalSettingsService = new Mock<ILocalSettingsService>();
TestHost = CreateTestHost();
Expand Down Expand Up @@ -76,11 +72,8 @@ private IHost CreateTestHost()
// App-management services
services.AddSingleton<IWinGet>(WindowsPackageManager.Object);
services.AddTransient<WinGetPackageJsonDataSource>();
services.AddTransient<WinGetPackageRestoreDataSource>();
services.AddSingleton<IRestoreInfo>(RestoreInfo.Object);
services.AddSingleton<PackageProvider>();
services.AddSingleton<IAppManagementInitializer, AppManagementInitializer>();
services.AddSingleton<WinGetPackageDataSource, WinGetPackageRestoreDataSource>();
services.AddSingleton<ICatalogDataSourceLoader, CatalogDataSourceLoader>();
services.AddSingleton<IScreenReaderService>(new Mock<IScreenReaderService>().Object);
services.AddSingleton<IDSC>(new Mock<IDSC>().Object);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Options;
using Microsoft.Internal.Windows.DevHome.Helpers;
using Microsoft.Internal.Windows.DevHome.Helpers.Restore;

namespace DevHome.SetupFlow.Extensions;

Expand Down Expand Up @@ -58,13 +57,11 @@ private static IServiceCollection AddAppManagement(this IServiceCollection servi
services.AddTransient<SearchMessageViewModel>();

// Services
services.AddSingleton<IRestoreInfo, RestoreInfo>();
services.AddSingleton<PackageProvider>();
services.AddTransient<AppManagementTaskGroup>();
services.AddSingleton<ICatalogDataSourceLoader, CatalogDataSourceLoader>();
services.AddSingleton<IAppManagementInitializer, AppManagementInitializer>();

services.AddSingleton<WinGetPackageDataSource, WinGetPackageRestoreDataSource>();
services.AddSingleton<WinGetPackageDataSource, WinGetPackageJsonDataSource>(sp =>
{
var dataSourcePath = sp.GetService<IOptions<SetupFlowOptions>>().Value.WinGetPackageJsonDataSourcePath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ public static class StringResourceKey
public static readonly string RemovedAllApplications = nameof(RemovedAllApplications);
public static readonly string ResultCountPlural = nameof(ResultCountPlural);
public static readonly string ResultCountSingular = nameof(ResultCountSingular);
public static readonly string RestorePackagesTitle = nameof(RestorePackagesTitle);
public static readonly string RestorePackagesDescription = nameof(RestorePackagesDescription);
public static readonly string RestorePackagesDescriptionWithDate = nameof(RestorePackagesDescriptionWithDate);
public static readonly string Repository = nameof(Repository);
public static readonly string ReviewNothingToSetUpToolTip = nameof(ReviewNothingToSetUpToolTip);
public static readonly string SelectedPackagesCount = nameof(SelectedPackagesCount);
Expand Down
Loading
Loading