mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Changing test structure. Need to add unit tests.
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace Microsoft.Plugin.Program.UnitTests.Programs
|
|
||||||
{
|
|
||||||
class PackageCatalogWrapperTests
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace Microsoft.Plugin.Program.UnitTests.Storage
|
||||||
|
{
|
||||||
|
class PackageRepositoryTest
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
using Windows.ApplicationModel;
|
||||||
|
|
||||||
|
namespace Microsoft.Plugin.Program.Storage
|
||||||
|
{
|
||||||
|
internal interface IProgramRepository
|
||||||
|
{
|
||||||
|
void IndexPrograms();
|
||||||
|
void Load();
|
||||||
|
void Save();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -14,7 +14,7 @@ namespace Microsoft.Plugin.Program.Storage
|
|||||||
/// A repository for storing packaged applications such as UWP apps or appx packaged desktop apps.
|
/// A repository for storing packaged applications such as UWP apps or appx packaged desktop apps.
|
||||||
/// This repository will also monitor for changes to the PackageCatelog and update the repository accordingly
|
/// This repository will also monitor for changes to the PackageCatelog and update the repository accordingly
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class PackageRepository : ListRepository<UWP.Application>, IRepository<UWP.Application>
|
internal class PackageRepository : ListRepository<UWP.Application>, IRepository<UWP.Application>, IProgramRepository
|
||||||
{
|
{
|
||||||
IPackageCatalog _packageCatalog;
|
IPackageCatalog _packageCatalog;
|
||||||
public PackageRepository(IPackageCatalog packageCatalog, IStorage<IList<UWP.Application>> storage) : base(storage)
|
public PackageRepository(IPackageCatalog packageCatalog, IStorage<IList<UWP.Application>> storage) : base(storage)
|
||||||
|
|||||||
Reference in New Issue
Block a user