Exemplo n.º 1
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);
		}
 void CreateAction()
 {
     fakeProject       = new FakePackageManagementProject();
     fakeScriptFactory = new FakePackageScriptFactory();
     fakeScriptRunner  = new FakePackageScriptRunner();
     globalMSBuildProjectCollection = MockRepository.GenerateStub <IGlobalMSBuildProjectCollection>();
     action = new RunPackageScriptsAction(
         fakeProject,
         fakeScriptRunner,
         fakeScriptFactory,
         globalMSBuildProjectCollection);
 }
		void CreateAction()
		{
			fakeProject = new FakePackageManagementProject();
			fakeScriptFactory = new FakePackageScriptFactory();
			fakeScriptRunner = new FakePackageScriptRunner();
			globalMSBuildProjectCollection = MockRepository.GenerateStub<IGlobalMSBuildProjectCollection>();
			action = new RunPackageScriptsAction(
				fakeProject,
				fakeScriptRunner,
				fakeScriptFactory,
				globalMSBuildProjectCollection);
		}
		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();
        }