Example #1
0
        public void SetUp()
        {
            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("FubuCore", test =>
                {
                    // No, I don't like this name more. I'm just making it complicated
                    test.Publishes("FubuFoundation", x => x.Assembly("FubuCore.dll"));
                    test.Publishes("FubuCore.Interfaces", x => x.Assembly("FubuCore.Interfaces.dll", "FubuCore"));
                });
            });

            theOutputDir = theScenario.CreateDirectory("output");

            theSolution = theScenario.Find("FubuCore");
            theSolution.AddNuspec(new NuspecMap {
                PackageId = "FubuCore.Interfaces", PublishedBy = "FubuCore"
            });
            theSolution.AddNuspec(new NuspecMap {
                PackageId = "FubuFoundation", PublishedBy = "FubuCore", DependsOn = "FubuCore.Interfaces"
            });

            RippleOperation
            .With(theSolution)
            .Execute <CreatePackagesInput, CreatePackagesCommand>(x =>
            {
                x.UpdateDependenciesFlag = true;
                x.DestinationFlag        = theOutputDir;
                x.VersionFlag            = "1.1.0.0";
            });
        }
        public void SetUp()
        {
            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("FubuCore", test =>
                {
                    // No, I don't like this name more. I'm just making it complicated
                    test.Publishes("FubuFoundation", x => x.Assembly("FubuCore.dll"));
                    test.Publishes("FubuCore.Interfaces", x => x.Assembly("FubuCore.Interfaces.dll", "FubuCore"));
                });
            });

            theOutputDir = theScenario.CreateDirectory("output");

            theSolution = theScenario.Find("FubuCore");
            theSolution.AddNuspec(new NuspecMap { PackageId = "FubuCore.Interfaces", PublishedBy = "FubuCore" });
            theSolution.AddNuspec(new NuspecMap { PackageId = "FubuFoundation", PublishedBy = "FubuCore", DependsOn = "FubuCore.Interfaces" });

            RippleOperation
                .With(theSolution)
                .Execute<CreatePackagesInput, CreatePackagesCommand>(x =>
                {
                    x.UpdateDependenciesFlag = true;
                    x.DestinationFlag = theOutputDir;
                    x.VersionFlag = "1.1.0.0";
                });
        }