本文整理汇总了C#中ripple.Model.Solution.AddFeed方法的典型用法代码示例。如果您正苦于以下问题:C# Solution.AddFeed方法的具体用法?C# Solution.AddFeed怎么用?C# Solution.AddFeed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ripple.Model.Solution
的用法示例。
在下文中一共展示了Solution.AddFeed方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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));
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();
});
}
示例2: 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));
}
示例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));
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);
}
示例4: 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
示例5: 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();
}
示例6: SetUp
public void SetUp()
{
theScenario = SolutionScenario.Create(scenario =>
{
scenario.Solution("Test", test =>
{
test.SolutionDependency("TestNuGet", "1.1.0.1", UpdateMode.Fixed);
test.ProjectDependency("Test", "TestNuGet");
});
});
theFeedDef = new Feed("file://C:/nugets/{branch}");
theSolution = theScenario.Find("Test");
theSolution.AddFeed(theFeedDef);
FeedScenario.Create(scenario =>
{
scenario.For("file://C:/nugets/develop")
.Add("TestNuGet", "1.1.0.1");
});
RippleOperation
.With(theSolution)
.Execute<RestoreInput, RestoreCommand>(x => x.BranchFlag = "develop");
}
示例7: SetUp
public void SetUp()
{
FeedScenario.Create(scenario =>
{
scenario.For(Feed.Fubu)
.Add("FubuCore", "1.1.0.0")
.ThrowWhenSearchingFor("Bottles", "1.0.0.0", UpdateMode.Float, new NotImplementedException());
scenario.For(Feed.NuGetV2)
.Add("Bottles", "1.0.0.0");
});
theSolution = Solution.Empty();
theSolution.AddFeed(Feed.Fubu);
theSolution.AddFeed(Feed.NuGetV2);
theFeedService = theSolution.FeedService.As<FeedService>();
}
示例8: SetUp
public void SetUp()
{
FeedScenario.Create(scenario =>
{
scenario.For(Feed.Fubu)
.Add("Test", "1.1.0.0")
.Add("Test", "1.2.0.0")
.Add("Test", "1.2.0.12");
});
theSolution = Solution.Empty();
theSolution.AddFeed(Feed.Fubu);
}
示例9: SetUp
public void SetUp()
{
theFilter = new EnsureLatestNuget();
FeedScenario.Create(scenario =>
{
scenario.For(Feed.NuGetV2)
.Add("Test", "1.1.0.0")
.Add("Test", "1.2.0.0")
.Add("Test", "1.2.0.12");
});
theSolution = Solution.Empty();
theSolution.AddFeed(Feed.NuGetV2);
}
示例10: SetUp
public void SetUp()
{
theFinder = new DefaultFinder();
FeedScenario.Create(scenario =>
{
scenario.For(Feed.NuGetV2)
.Add("Test", "1.1.0.0")
.Add("Test", "1.2.0.0")
.Add("Test", "1.2.0.12");
});
theSolution = Solution.Empty();
theSolution.AddFeed(Feed.NuGetV2);
}
示例11: SetUp
public void SetUp()
{
theFinder = new NoMaxVersionSpecFinder();
FeedScenario.Create(scenario =>
{
scenario.For(Feed.Fubu)
.Add("Test", "1.1.0.0")
.Add("Test", "1.2.0.0")
.Add("Test", "1.2.0.12");
});
theSolution = Solution.Empty();
theSolution.AddFeed(Feed.Fubu);
}
示例12: SetUp
public void SetUp()
{
theSolution = Solution.Empty();
theCacheFeed = new Feed("cache");
theFeed = new Feed("test");
theSolution.AddFeed(theFeed);
theSolution.UseCache(new InMemoryNugetCache(theCacheFeed));
FeedScenario.Create(scenario =>
{
scenario.For(theFeed);
scenario.For(theCacheFeed);
});
theConnectivity = new FeedConnectivity();
}
示例13: SetUp
public void SetUp()
{
theStorage = new StubNugetStorage();
theStorage.Add("FubuCore", "1.0.0.0");
theStorage.Add("Bottles", "1.0.0.0");
theStorage.Add("StructureMap", "2.6.3");
theSolution = Solution.Empty();
theSolution.AddDependency(new Dependency("FubuCore", "1.0.0.0"));
theSolution.AddDependency(new Dependency("Bottles", "1.0.0.0"));
theSolution.AddDependency(new Dependency("FubuLocalization", "1.0.0.0"));
theSolution.AddDependency(new Dependency("StructureMap", "2.6.3", UpdateMode.Fixed));
theSolution.AddFeed(Feed.Fubu);
theSolution.UseStorage(theStorage);
FeedScenario.Create(scenario =>
{
scenario
.For(Feed.Fubu)
.Add("StructureMap", "2.6.4.54");
});
}
示例14: 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");
});
}
示例15: SetUp
public void SetUp()
{
theFeed = new Feed("testing");
theStorage = new StubNugetStorage();
theSolution = new Solution();
theSolution.UseStorage(theStorage);
theSolution.AddFeed(theFeed);
theSolution.AddDependency(new Dependency("Bottles", "1.0.0.0"));
theSolution.AddDependency(new Dependency("FubuCore"));
theSolution.AddDependency(new Dependency("StructureMap", "2.6.3", UpdateMode.Fixed));
theFeedService = theSolution.FeedService.As<FeedService>();
FeedScenario.Create(scenario =>
{
scenario.For(theFeed)
.Add(new Dependency("Bottles", "1.0.0.0"))
.Add(new Dependency("Bottles", "1.0.1.0"))
.Add(new Dependency("FubuCore", "1.2.0.0"))
.Add(new Dependency("StructureMap", "2.6.4.54"));
});
}