예제 #1
0
        public void SetUp()
        {
            theConfig = new SolutionConfig();

            theSolution = new Solution();
            p1 = theSolution.AddProject("Project1");
            p2 = theSolution.AddProject("Project2");

            p1.AddDependency(new Dependency("Bottles"));
            p1.AddDependency(new Dependency("FubuCore", "1.1.2.3", UpdateMode.Fixed));

            p2.AddDependency(new Dependency("FubuCore", "1.1.2.3", UpdateMode.Fixed));
            p2.AddDependency(new Dependency("FubuLocalization"));
            p2.AddDependency(new Dependency("StructureMap", "2.6.3", UpdateMode.Fixed));

            theLoader = new NuGetSolutionLoader();
            theLoader.ExtractSolutionLevelConfiguration(theConfig, theSolution);
        }
예제 #2
0
        public void SetUp()
        {
            theConfig = new SolutionConfig();
            theConfig.FloatNuget("Bottles");
            theConfig.FloatNuget("FubuCore");
            theConfig.FloatNuget("FubuLocalization");

            theSolution = new Solution();
            p1 = theSolution.AddProject("Project1");
            p2 = theSolution.AddProject("Project2");

            p1.AddDependency(new Dependency("Bottles", "1.1.2.3", UpdateMode.Fixed));
            p1.AddDependency(new Dependency("FubuCore", "1.1.2.3", UpdateMode.Fixed));

            p2.AddDependency(new Dependency("FubuLocalization", "1.0.0.1", UpdateMode.Fixed));
            p2.AddDependency(new Dependency("StructureMap", "2.6.3", UpdateMode.Fixed));

            theLoader = new NuGetSolutionLoader();
            theLoader.MarkFloatingDependencies(theConfig, theSolution);
        }
예제 #3
0
        public void SetUp()
        {
            theFeed = new Feed();
            theConfig = new SolutionConfig
                {
                    Feeds = new[] {theFeed}
                };

            const string rippleConfig = "ripple.config";
            var fileSystem = MockRepository.GenerateStub<IFileSystem>();
            fileSystem.Stub(x => x.LoadFromFile<SolutionConfig>(rippleConfig)).Return(theConfig);

            theLoader = new NuGetSolutionLoader();
            theSolution = theLoader.LoadFrom(fileSystem, rippleConfig);
        }