public void SetUp()
		{
			r1 = MockRepository.GenerateStub<IDependencyStrategy>();
			r2 = MockRepository.GenerateStub<IDependencyStrategy>();

			d1 = new Dependency("FubuCore", "1.0.0.215");
			d2 = new Dependency("Bottles", "1.0.0.212");

			var project = new Project("MyProject.csproj");

			r1.Stub(x => x.Matches(project)).Return(false);
			r2.Stub(x => x.Matches(project)).Return(true);

			r2.Stub(x => x.Read(project)).Return(new[] {d1, d2});

			theReader = new ProjectReader(new[] {r1, r2});
			theProject = theReader.Read("MyProject.csproj");
		}
Example #2
0
        public static Solution ReadFrom(string directory)
        {
            var builder = new SolutionBuilder(SolutionFiles.FromDirectory(directory), ProjectReader.Basic());

            return(builder.Build());
        }
Example #3
0
 public static ISolutionBuilder Classic()
 {
     return(new SolutionBuilder(SolutionFiles.Classic(), ProjectReader.Basic()));
 }