protected override void Before_each_spec() { packageTree = TreeHelper.GetTempPackageTree(); get = MockRepository.GenerateStub<IGet>(); repositoryElement = new RepositoryElementStub("castle", "Tools", "Tools"); dependencyResolver = CreateStub<IDependencyResolver>(); dependencyResolver.Stub(x => x.Resolve<IBuildConfigReader>()).Return(new BooBuildConfigReader()); var svn = new SVNSourceControl("http://svnserver/trunk"); get.Stub(x => x.From(svn)).Return(get); dependencyResolver.Stub(x => x.Resolve<SVNSourceControl>()).Return(svn); IoC.InitializeWith(dependencyResolver); }
protected override void Before_each_spec() { IBuildConfigReader buildConfigReader = new BooBuildConfigReader(); dependencyResolver = CreateStub<IDependencyResolver>(); dependencyResolver.Stub(x => x.Resolve<IBuildConfigReader>()).Return(buildConfigReader); var svn = new SVNSourceControl("http://svnserver/trunk"); dependencyResolver.Stub(x => x.Resolve<SVNSourceControl>()).Return(svn); IoC.InitializeWith(dependencyResolver); }