本文整理匯總了C#中ripple.Model.Solution.Package方法的典型用法代碼示例。如果您正苦於以下問題:C# Solution.Package方法的具體用法?C# Solution.Package怎麽用?C# Solution.Package使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ripple.Model.Solution
的用法示例。
在下文中一共展示了Solution.Package方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: FixtureSetUp
public void FixtureSetUp()
{
theScenario = SolutionScenario.Create(scenario =>
{
scenario.Solution("FubuCore", fubucore => fubucore.Publishes("FubuCore"));
});
theNugetDirectory = theScenario.Directory.AppendPath("nugets");
theFileSystem = new FileSystem();
theFileSystem.CreateDirectory(theNugetDirectory);
theSolution = theScenario.Find("FubuCore");
theSolution.Package(new PackageParams(theSolution.Specifications.Single(), new SemanticVersion("1.1.1.1"), theNugetDirectory, _publishSymbols));
}
示例2: publishes_the_specification
public void publishes_the_specification()
{
var s1 = new NugetSpec("Test1", "Test1.nuspec");
var solution = new Solution();
var service = MockRepository.GenerateStub<IPublishingService>();
service.Stub(x => x.SpecificationsFor(solution)).Return(new[] { s1 });
solution.UsePublisher(service);
var version = SemanticVersion.Parse("1.1.2.3");
var ctx = new PackageParams(s1, version, "artifacts", false);
solution.Package(ctx);
service.AssertWasCalled(x => x.CreatePackage(ctx));
}