本文整理匯總了C#中ripple.Model.Solution.Ignore方法的典型用法代碼示例。如果您正苦於以下問題:C# Solution.Ignore方法的具體用法?C# Solution.Ignore怎麽用?C# Solution.Ignore使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ripple.Model.Solution
的用法示例。
在下文中一共展示了Solution.Ignore方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: persists_and_retrieves_the_solution
public void persists_and_retrieves_the_solution()
{
var solution = new Solution
{
Name = "Test",
Feeds = new[] { Feed.NuGetV2, Feed.NuGetV1 },
Nugets = new[] { new Dependency("FubuCore", "1.0.1.0") }
};
var group = new DependencyGroup { Name = "Test"};
group.Add(new GroupedDependency("FubuCore"));
solution.AddGroup(group);
solution.AddDependency(new Dependency("Bottles", "1.0.0.0")
{
VersionConstraint = VersionConstraint.DefaultFloat
});
solution.AddNuspec(new NuspecMap { PackageId = "Temp", PublishedBy = "Test" });
solution.Ignore("Rhino.ServiceBus.dll", "Esent.Interop.dll");
var registry = new RippleBlockRegistry();
var solutionSettings = registry.SettingsFor(typeof (Solution));
CheckObjectBlockPersistence
.ForSolution(solution)
.VerifyProperties(property =>
{
if (!property.CanWrite)
return false;
if (solutionSettings.ShouldIgnore(solution, new SingleProperty(property)))
return false;
return true;
});
}