You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.0 KiB
42 lines
1.0 KiB
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) |
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) |
|
|
|
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using ICSharpCode.PackageManagement; |
|
using ICSharpCode.PackageManagement.Design; |
|
using NuGet; |
|
|
|
namespace PackageManagement.Tests.Helpers |
|
{ |
|
public class FakeRecentPackageRepository : IRecentPackageRepository |
|
{ |
|
public string Source { get; set; } |
|
public List<FakePackage> FakePackages = new List<FakePackage>(); |
|
|
|
public IQueryable<IPackage> GetPackages() |
|
{ |
|
return FakePackages.AsQueryable(); |
|
} |
|
|
|
public void AddPackage(IPackage package) |
|
{ |
|
} |
|
|
|
public void RemovePackage(IPackage package) |
|
{ |
|
} |
|
|
|
public bool IsClearCalled; |
|
|
|
public void Clear() |
|
{ |
|
IsClearCalled = true; |
|
} |
|
|
|
public bool HasRecentPackages { get; set; } |
|
public bool SupportsPrereleasePackages { get; set; } |
|
public PackageSaveModes PackageSaveMode { get; set; } |
|
} |
|
}
|
|
|