本文整理汇总了C#中ripple.Model.Solution.ClearFeeds方法的典型用法代码示例。如果您正苦于以下问题:C# Solution.ClearFeeds方法的具体用法?C# Solution.ClearFeeds怎么用?C# Solution.ClearFeeds使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ripple.Model.Solution
的用法示例。
在下文中一共展示了Solution.ClearFeeds方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetUp
public void SetUp()
{
theSolution = new Solution();
theSolution.ClearFeeds();
theSolution.AddFeed(Feed.Fubu);
theSolution.AddFeed(Feed.NuGetV2);
theSolution.AddDependency(fubucore = new Dependency("FubuCore", "1.0.1.201"));
var theProject = new Project("Test.csproj");
theSolution.AddProject(theProject);
theProject.AddDependency(bottles = new Dependency("Bottles"));
theProject.AddDependency(rhinomocks = new Dependency("RhinoMocks", "3.6.1", UpdateMode.Fixed));
theProject.AddDependency(structuremap = new Dependency("StructureMap", "2.6.3", UpdateMode.Fixed));
theFubuFeed = MockRepository.GenerateStub<IFloatingFeed>();
theFubuFeed.Stub(x => x.GetLatest()).Return(new IRemoteNuget[]
{
new StubNuget("Bottles", "1.0.2.2"),
new StubNuget("FubuCore", "1.0.2.232"),
new StubNuget("StructureMap", "2.6.4.71"),
});
theNugetFeed = MockRepository.GenerateStub<INugetFeed>();
theNugetFeed.Stub(x => x.Find(rhinomocks)).Return(new StubNuget("RhinoMocks", "3.6.1"));
theNugetFeed.Stub(x => x.Find(structuremap)).Return(new StubNuget("StructureMap", "2.6.3"));
theFeedProvider = MockRepository.GenerateStub<IFeedProvider>();
theFeedProvider.Stub(x => x.For(Feed.Fubu)).Return(theFubuFeed);
theFeedProvider.Stub(x => x.For(Feed.NuGetV2)).Return(theNugetFeed);
FeedRegistry.Stub(theFeedProvider);
}
示例2: SetUp
public void SetUp()
{
theScenario = SolutionGraphScenario.Create(scenario =>
{
scenario.Solution("NServiceBus.WebSphereMQ", test =>
{
test.SolutionDependency("NServiceBus.Interfaces", "4.0.0.0", UpdateMode.Float);
});
scenario.AddCachedNuget("NServiceBus.Interfaces", "4.0.0.0-unstable3041");
});
nServiceBus = new Feed("http://builds.nservicebus.com/guestAuth/app/nuget/v1/FeedService.svc", UpdateMode.Float, NugetStability.Anything);
theSolution = theScenario.Find("NServiceBus.WebSphereMQ");
theSolution.ClearFeeds();
theSolution.AddFeed(nServiceBus);
FeedScenario.Create(scenario =>
{
scenario.For(nServiceBus)
.Add("NServiceBus.Interfaces", "4.0.0.0-beta0002");
});
NugetFolderCache.DisableValidation();
}
示例3: SetUp
public void SetUp()
{
theSolution = new Solution();
theSolution.ClearFeeds();
theSolution.AddFeed(Feed.Fubu);
theSolution.AddFeed(Feed.NuGetV2);
theSolution.AddDependency(fubucore = new Dependency("FubuCore", "1.0.1.201"));
var theProject = new Project("Test.csproj");
theSolution.AddProject(theProject);
theProject.AddDependency(bottles = new Dependency("Bottles"));
theProject.AddDependency(rhinomocks = new Dependency("RhinoMocks", "3.6.1", UpdateMode.Fixed));
theProject.AddDependency(structuremap = new Dependency("StructureMap", "2.6.3", UpdateMode.Fixed));
FeedScenario.Create(scenario =>
{
scenario.For(Feed.Fubu)
.Add("Bottles", "1.0.2.2")
.Add("FubuCore", "1.0.2.232")
.Add("StructureMap", "2.6.4.71");
scenario.For(Feed.NuGetV2)
.Add("RhinoMocks", "3.6.1")
.Add("StructureMap", "2.6.3");
scenario.For(theSolution.Cache.ToFeed());
scenario.Online();
});
}
示例4: SetUp
public void SetUp()
{
theCacheFeed = new Feed("file://cache");
theFileSystemFeed = new Feed("file://feed");
FeedScenario.Create(scenario =>
{
scenario.For(theCacheFeed)
.Add("Dependency1", "1.0.0.0");
scenario.For(theFileSystemFeed)
.Add("Dependency1", "1.1.0.0");
scenario.For(Feed.NuGetV2)
.Add("Dependency1", "1.0.23.0");
});
theScenario = SolutionGraphScenario.Create(scenario =>
{
scenario.Solution("Test", test =>
{
test.SolutionDependency("Dependency1", "1.1.0.0", UpdateMode.Float);
});
});
theSolution = theScenario.Find("Test");
theSolution.ClearFeeds();
theSolution.AddFeed(theFileSystemFeed);
theSolution.AddFeed(Feed.NuGetV2);
theSolution.UseCache(new InMemoryNugetCache(theCacheFeed));
}
示例5: SetUp
public void SetUp()
{
theUnavailableFeed = new Feed("unavailable");
anotherFloatingFeed = new Feed("floated");
theScenario = SolutionScenario.Create(scenario =>
{
scenario.Solution("Test", test =>
{
test.SolutionDependency("Bottles", "0.9.0.1", UpdateMode.Float);
test.SolutionDependency("FubuJson", "0.9.0.6", UpdateMode.Float);
});
});
theSolution = theScenario.Find("Test");
theSolution.ClearFeeds();
theSolution.AddFeed(theUnavailableFeed);
theSolution.AddFeed(Feed.Fubu);
theSolution.AddFeed(anotherFloatingFeed);
FeedScenario.Create(scenario =>
{
scenario
.For(theSolution.Cache.ToFeed())
.Add("Bottles", "0.8.0.123")
.Add("FubuJson", "0.9.0.1");
scenario
.For(theUnavailableFeed)
.ThrowWhenSearchingFor("FubuJson", new InvalidOperationException("DNS Error"));
scenario
.For(Feed.Fubu)
.Add("Bottles", "0.9.0.1")
.Add("FubuJson", "0.9.0.333");
scenario
.For(anotherFloatingFeed)
.Add("Test", "1.0.0.0");
scenario
.For(Feed.NuGetV2)
.Add("FubuTransportation", "0.9.0.1");
});
RippleOperation
.With(theSolution)
.Execute<RestoreInput, RestoreCommand>(x => x.VerboseFlag = true);
}
开发者ID:modulexcite,项目名称:ripple,代码行数:51,代码来源:restore_dependencies_from_multiple_feeds_first_feed_unavailable.cs
示例6: ToSolution
public Solution ToSolution()
{
var solution = new Solution {Name = Name};
SourceFolderFlag.IfNotEmpty(x => solution.SourceFolder = x);
NuspecFolderFlag.IfNotEmpty(x => solution.NugetSpecFolder = x);
FeedsFlag.IfNotEmpty(x =>
{
solution.ClearFeeds();
solution.AddFeeds(x.GetFeeds());
});
return solution;
}
示例7: SetUp
public void SetUp()
{
theScenario = SolutionGraphScenario.Create(scenario =>
{
scenario.Solution("FubuMVC", fubumvc =>
{
fubumvc.ProjectDependency("FubuMVC.Core", "FubuCore");
fubumvc.ProjectDependency("FubuMVC.Core", "Bottles");
});
});
theSolution = theScenario.Find("FubuMVC");
theSolution.ClearFeeds();
theSolution.AddFeed(new Feed("http://local"));
FeedScenario.Create(scenario =>
{
scenario.For("http://local")
.Add("FubuCore", "1.0.0.1")
.Add("Bottles", "1.0.0.0");
});
}
示例8: Empty
public static Solution Empty()
{
var solution = new Solution();
solution.ClearFeeds();
return solution;
}
示例9: NuGet
public static Solution NuGet(string name, string directory = null)
{
var solution = new Solution { Name = name };
solution.ClearFeeds();
solution.AddFeed(Feed.NuGetV2);
solution.Directory = directory;
return solution;
}