public PackageInitializationScripts(
			ISolutionPackageRepository solutionPackageRepository,
			IPackageScriptFactory scriptFactory)
        {
            this.solutionPackageRepository = solutionPackageRepository;
            this.scriptFactory = scriptFactory;
        }
Example #2
0
 public PackageInitializationScripts(
     ISolutionPackageRepository solutionPackageRepository,
     IPackageScriptFactory scriptFactory)
 {
     this.solutionPackageRepository = solutionPackageRepository;
     this.scriptFactory             = scriptFactory;
 }
Example #3
0
 void CreateAction()
 {
     scriptRunner             = MockRepository.GenerateStub <IPackageScriptRunner>();
     scriptFactory            = MockRepository.GenerateStub <IPackageScriptFactory>();
     msbuildProjectCollection = MockRepository.GenerateStub <IGlobalMSBuildProjectCollection>();
     action = new RunAllProjectPackageScriptsAction(
         scriptRunner,
         projects,
         scriptFactory,
         msbuildProjectCollection);
 }
		void CreateAction()
		{
			scriptRunner = MockRepository.GenerateStub<IPackageScriptRunner>();
			scriptFactory = MockRepository.GenerateStub<IPackageScriptFactory>();
			msbuildProjectCollection = MockRepository.GenerateStub<IGlobalMSBuildProjectCollection>();
			action = new RunAllProjectPackageScriptsAction(
				scriptRunner,
				projects,
				scriptFactory,
				msbuildProjectCollection);
		}
        public RunPackageScriptsAction(
            IPackageManagementProject project,
            IPackageScriptRunner scriptRunner,
            IPackageScriptFactory scriptFactory)
        {
            this.project       = project;
            this.scriptRunner  = scriptRunner;
            this.scriptFactory = scriptFactory;

            RegisterEvents();
        }
		public RunPackageScriptsAction(
			IPackageManagementProject project,
			IPackageScriptRunner scriptRunner,
			IPackageScriptFactory scriptFactory)
		{
			this.project = project;
			this.scriptRunner = scriptRunner;
			this.scriptFactory = scriptFactory;
			
			RegisterEvents();
		}
		public RunAllProjectPackageScriptsAction(
			IPackageScriptRunner scriptRunner,
			IEnumerable<IPackageManagementProject> projects,
			IPackageScriptFactory scriptFactory,
			IGlobalMSBuildProjectCollection projectCollection)
		{
			this.scriptRunner = scriptRunner;
			this.projects = projects.ToList();
			this.scriptFactory = scriptFactory;
			this.projectCollection = projectCollection;
			
			AddProjectsToGlobalCollection();
			RegisterEvents();
		}
		public RunPackageScriptsAction(
			IPackageManagementProject project,
			IPackageScriptRunner scriptRunner,
			IPackageScriptFactory scriptFactory,
			IGlobalMSBuildProjectCollection projectCollection)
		{
			this.project = project;
			this.scriptRunner = scriptRunner;
			this.scriptFactory = scriptFactory;
			this.projectCollection = projectCollection;
			
			projectCollection.AddProject(project);
			RegisterEvents();
		}
        public RunPackageScriptsAction(
            IPackageManagementProject project,
            IPackageScriptRunner scriptRunner,
            IPackageScriptFactory scriptFactory,
            IGlobalMSBuildProjectCollection projectCollection)
        {
            this.project           = project;
            this.scriptRunner      = scriptRunner;
            this.scriptFactory     = scriptFactory;
            this.projectCollection = projectCollection;

            projectCollection.AddProject(project);
            RegisterEvents();
        }
        public RunAllProjectPackageScriptsAction(
            IPackageScriptRunner scriptRunner,
            IEnumerable <IPackageManagementProject> projects,
            IPackageScriptFactory scriptFactory,
            IGlobalMSBuildProjectCollection projectCollection)
        {
            this.scriptRunner      = scriptRunner;
            this.projects          = projects.ToList();
            this.scriptFactory     = scriptFactory;
            this.projectCollection = projectCollection;

            AddProjectsToGlobalCollection();
            RegisterEvents();
        }
Example #11
0
 void CreateScripts(IPackageScriptFactory scriptFactory)
 {
     fakeSolutionPackageRepository = new FakeSolutionPackageRepository();
     fakeSession = new FakePackageScriptSession();
     scripts     = new PackageInitializationScripts(fakeSolutionPackageRepository, scriptFactory);
 }
		void CreateScripts(IPackageScriptFactory scriptFactory)
		{
			fakeSolutionPackageRepository = new FakeSolutionPackageRepository();
			fakeSession = new FakePackageScriptSession();
			scripts = new PackageInitializationScripts(fakeSolutionPackageRepository, scriptFactory);
		}