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
0
        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));
        }