示例#1
0
        public DTE(
            IPackageManagementProjectService projectService,
            IPackageManagementFileService fileService)
        {
            this.projectService = projectService;
            this.fileService    = fileService;

            ItemOperations = new ItemOperations(fileService);
        }
示例#2
0
		public DTE(
			IPackageManagementProjectService projectService,
			IPackageManagementFileService fileService)
		{
			this.projectService = projectService;
			this.fileService = fileService;
			
			ItemOperations = new ItemOperations(fileService);
		}
示例#3
0
        internal DTE(
            IExtendedPackageManagementProjectService projectService,
            IPackageManagementFileService fileService)
        {
            this.projectService = projectService;
            this.fileService    = fileService;

            ItemOperations = new ItemOperations();
        }
 public SharpDevelopProjectSystem(
     MSBuildBasedProject project,
     IPackageManagementFileService fileService,
     IPackageManagementProjectService projectService)
     : base(AppendTrailingSlashToDirectory(project.Directory))
 {
     this.project        = project;
     this.fileService    = fileService;
     this.projectService = projectService;
 }
		public SharpDevelopProjectSystem(
			MSBuildBasedProject project,
			IPackageManagementFileService fileService,
			IPackageManagementProjectService projectService)
			: base(AppendTrailingSlashToDirectory(project.Directory))
		{
			this.project = project;
			this.fileService = fileService;
			this.projectService = projectService;
		}
示例#6
0
 public OpenPackageReadMeMonitor(
     string packageId,
     IPackageManagementProject project,
     IPackageManagementFileService fileService)
 {
     PackageId                 = packageId;
     this.project              = project;
     this.fileService          = fileService;
     project.PackageInstalled += PackageInstalled;
 }
		public OpenPackageReadMeMonitor (
			string packageId,
			IPackageManagementProject project,
			IPackageManagementFileService fileService)
		{
			PackageId = packageId;
			this.project = project;
			this.fileService = fileService;
			project.PackageInstalled += PackageInstalled;
		}
示例#8
0
 TestableSharpDevelopProjectSystem(
     MSBuildBasedProject project,
     IPackageManagementFileService fileService,
     IPackageManagementProjectService projectService,
     FakeLogger logger)
     : base(project, fileService, projectService)
 {
     FakeFileService    = (FakeFileService)fileService;
     FakeProjectService = (FakePackageManagementProjectService)projectService;
     Logger             = logger;
 }
 public SharpDevelopProjectSystem(
     IDotNetProject project,
     IPackageManagementFileService fileService,
     IPackageManagementProjectService projectService,
     Action <MessageHandler> guiSyncDispatcher)
     : base(AppendTrailingSlashToDirectory(project.BaseDirectory))
 {
     this.project           = project;
     this.fileService       = fileService;
     this.guiSyncDispatcher = guiSyncDispatcher;
 }
		TestableMonoDevelopProjectSystem (
			IDotNetProject project,
			IPackageManagementFileService fileService,
			IPackageManagementProjectService projectService,
			FakeLogger logger)
			: base (project, fileService, projectService, GuiSyncDispatcher)
		{
			FakeFileService = (FakeFileService)fileService;
			FakeProjectService = (FakePackageManagementProjectService)projectService;
			Logger = logger;
		}
示例#11
0
 TestableMonoDevelopProjectSystem(
     IDotNetProject project,
     FakeNuGetProjectContext context,
     IPackageManagementFileService fileService,
     PackageManagementEvents packageManagementEvents)
     : base(project, context, fileService, packageManagementEvents, GuiSyncDispatcher, GuiSyncDispatcherFunc)
 {
     FakeNuGetProjectContext = context;
     FakeFileService         = (FakeFileService)fileService;
     PackageManagementEvents = packageManagementEvents;
 }
		TestableSharpDevelopProjectSystem(
			MSBuildBasedProject project,
			IPackageManagementFileService fileService,
			IPackageManagementProjectService projectService,
			FakeLogger logger)
			: base(project, fileService, projectService)
		{
			FakeFileService = (FakeFileService)fileService;
			FakeProjectService = (FakePackageManagementProjectService)projectService;
			Logger = logger;
		}
		TestableMonoDevelopProjectSystem (
			IDotNetProject project,
			FakeNuGetProjectContext context,
			IPackageManagementFileService fileService,
			PackageManagementEvents packageManagementEvents)
			: base (project, context, fileService, packageManagementEvents, GuiSyncDispatcher, GuiSyncDispatcherFunc)
		{
			FakeNuGetProjectContext = context;
			FakeFileService = (FakeFileService)fileService;
			PackageManagementEvents = packageManagementEvents;
		}
示例#14
0
 TestableMonoDevelopProjectSystem(
     IDotNetProject project,
     IPackageManagementFileService fileService,
     IPackageManagementProjectService projectService,
     FakeLogger logger)
     : base(project, fileService, projectService, GuiSyncDispatcher)
 {
     FakeFileService    = (FakeFileService)fileService;
     FakeProjectService = (FakePackageManagementProjectService)projectService;
     Logger             = logger;
 }
示例#15
0
        void CreateProject()
        {
            msbuildProject = ProjectHelper.CreateTestProject();
            helper         = new ProjectContentHelper();

            fakeProjectService = MockRepository.GenerateStub <IPackageManagementProjectService>();
            fakeProjectService.Stub(service => service.GetProjectContent(msbuildProject)).Return(helper.ProjectContent);

            fakeFileService = MockRepository.GenerateStub <IPackageManagementFileService>();
            project         = new Project(msbuildProject, fakeProjectService, fakeFileService);
        }
示例#16
0
		void CreateProject()
		{
			msbuildProject = ProjectHelper.CreateTestProject();
			helper = new ProjectContentHelper();
			
			fakeProjectService = MockRepository.GenerateStub<IPackageManagementProjectService>();
			fakeProjectService.Stub(service => service.GetProjectContent(msbuildProject)).Return(helper.ProjectContent);
			
			fakeFileService = MockRepository.GenerateStub<IPackageManagementFileService>();
			project = new Project(msbuildProject, fakeProjectService, fakeFileService);
		}
示例#17
0
		void CreateProject(string fileName = @"d:\projects\MyProject\MyProject.csproj", string language = "C#")
		{
			msbuildProject = ProjectHelper.CreateTestProject();
			msbuildProject.FileName = new FileName(fileName);
			//helper = new ProjectContentHelper();
			
			fakeProjectService = MockRepository.GenerateStub<IPackageManagementProjectService>();
			//fakeProjectService.Stub(service => service.GetProjectContent(msbuildProject)).Return(helper.ProjectContent);
			
			fakeFileService = MockRepository.GenerateStub<IPackageManagementFileService>();
			project = new Project(msbuildProject, fakeProjectService, fakeFileService);
		}
		public Project (
			DotNetProject project,
			IExtendedPackageManagementProjectService projectService,
			IPackageManagementFileService fileService)
		{
			this.DotNetProject = project;
			this.projectService = projectService;
			this.fileService = fileService;
			
			CreateProperties ();
			Object = new ProjectObject (this);
			ProjectItems = new ProjectItems (this, this, fileService);
		}
示例#19
0
        public Project(
            MSBuildBasedProject project,
            IPackageManagementProjectService projectService,
            IPackageManagementFileService fileService)
        {
            this.MSBuildProject = project;
            this.projectService = projectService;
            this.fileService    = fileService;

            CreateProperties();
            Object       = new ProjectObject(this);
            ProjectItems = new ProjectItems(this, this, fileService);
        }
        internal Project(
            DotNetProject project,
            IExtendedPackageManagementProjectService projectService,
            IPackageManagementFileService fileService)
        {
            this.DotNetProject  = project;
            this.projectService = projectService;
            this.fileService    = fileService;

            CreateProperties();
            Object       = new ProjectObject(this);
            ProjectItems = new ProjectItems(this, this, fileService);
        }
示例#21
0
		public Project(
			MSBuildBasedProject project,
			IPackageManagementProjectService projectService,
			IPackageManagementFileService fileService)
		{
			this.MSBuildProject = project;
			this.projectService = projectService;
			this.fileService = fileService;
			
			CreateProperties();
			Object = new ProjectObject(this);
			ProjectItems = new ProjectItems(this, fileService);
		}
示例#22
0
 public MonoDevelopProjectSystem(
     IDotNetProject project,
     IPackageManagementFileService fileService,
     IPackageManagementProjectService projectService,
     IPackageManagementEvents packageManagementEvents,
     Action <MessageHandler> guiSyncDispatcher,
     Func <Func <Task>, Task> guiSyncDispatcherFunc)
     : base(AppendTrailingSlashToDirectory(project.BaseDirectory))
 {
     this.project                 = project;
     this.fileService             = fileService;
     this.packageManagementEvents = packageManagementEvents;
     this.guiSyncDispatcher       = guiSyncDispatcher;
     this.guiSyncDispatcherFunc   = guiSyncDispatcherFunc;
 }
示例#23
0
 public MonoDevelopMSBuildNuGetProjectSystem(
     IDotNetProject project,
     INuGetProjectContext context,
     IPackageManagementFileService fileService,
     IPackageManagementEvents packageManagementEvents,
     Action <Action> guiSyncDispatcher,
     Func <Func <Task>, Task> guiSyncDispatcherFunc)
 {
     this.project                 = project;
     NuGetProjectContext          = context;
     this.fileService             = fileService;
     this.packageManagementEvents = packageManagementEvents;
     this.guiSyncDispatcher       = guiSyncDispatcher;
     this.guiSyncDispatcherFunc   = guiSyncDispatcherFunc;
 }
示例#24
0
 public ConsoleHostMSBuildNuGetProjectSystem(
     IDotNetProject project,
     INuGetProjectContext context,
     IPackageManagementFileService fileService,
     IPackageManagementEvents packageManagementEvents,
     Action <Action> guiSyncDispatcher,
     Func <Func <Task>, Task> guiSyncDispatcherFunc,
     Func <Func <Task <bool> >, Task <bool> > guiSyncDispatcherFuncReturnBool)
 {
     this.project                         = project;
     NuGetProjectContext                  = context;
     this.fileService                     = fileService;
     this.packageManagementEvents         = packageManagementEvents;
     this.guiSyncDispatcher               = guiSyncDispatcher;
     this.guiSyncDispatcherFunc           = guiSyncDispatcherFunc;
     this.guiSyncDispatcherFuncReturnBool = guiSyncDispatcherFuncReturnBool;
 }
示例#25
0
        public Project(
            MSBuildBasedProject project,
            IPackageManagementProjectService projectService,
            IPackageManagementFileService fileService)
        {
            this.MSBuildProject = project;
            this.projectService = projectService;
            this.fileService    = fileService;

            context = new CodeModelContext {
                CurrentProject = project,
                DteProject     = this
            };

            CreateProperties();
            Object       = new ProjectObject(this);
            ProjectItems = new ProjectItems(this, this);
        }
		protected void CreateCodeModel()
		{
			msbuildProject = ProjectHelper.CreateTestProject();
			
			projectService = MockRepository.GenerateStub<IPackageManagementProjectService>();
			fileService = MockRepository.GenerateStub<IPackageManagementFileService>();
			dteProject = new Project(msbuildProject, projectService, fileService);
			codeModelContext.DteProject = dteProject;
			
			codeModel = new CodeModel(codeModelContext, dteProject);
			
			msbuildProject.SetAssemblyModel(assemblyModel);
			project.Stub(p => p.AssemblyModel).Return(assemblyModel);
			
			fileService
				.Stub(fs => fs.GetCompilationUnit(msbuildProject))
				.WhenCalled(compilation => compilation.ReturnValue = CreateCompilation());
		}
        protected void CreateCodeModel()
        {
            msbuildProject = ProjectHelper.CreateTestProject();

            projectService = MockRepository.GenerateStub <IPackageManagementProjectService>();
            fileService    = MockRepository.GenerateStub <IPackageManagementFileService>();
            dteProject     = new Project(msbuildProject, projectService, fileService);
            codeModelContext.DteProject = dteProject;

            codeModel = new CodeModel(codeModelContext, dteProject);

            msbuildProject.SetAssemblyModel(assemblyModel);
            project.Stub(p => p.AssemblyModel).Return(assemblyModel);

            fileService
            .Stub(fs => fs.GetCompilationUnit(msbuildProject))
            .WhenCalled(compilation => compilation.ReturnValue = CreateCompilation());
        }
示例#28
0
        public Project(
			MSBuildBasedProject project,
			IPackageManagementProjectService projectService,
			IPackageManagementFileService fileService)
        {
            this.MSBuildProject = project;
            this.projectService = projectService;
            this.fileService = fileService;

            context = new CodeModelContext {
                CurrentProject = project,
                DteProject = this
            };

            CreateProperties();
            Object = new ProjectObject(this);
            ProjectItems = new ProjectItems(this, this);
        }
 public FileProjectItems(ProjectItem projectItem)
     : base((Project)projectItem.ContainingProject, projectItem)
 {
     this.projectItem = projectItem;
     this.fileService = Project.FileService;
 }
示例#30
0
 public ItemOperations(IPackageManagementFileService fileService)
 {
     this.fileService = fileService;
 }
		public ProjectItemsInsideProject (Project project, IPackageManagementFileService fileService)
		{
			this.project = project;
			this.fileService = fileService;
		}
示例#32
0
 public ItemOperations(IPackageManagementFileService fileService)
 {
     this.fileService = fileService;
 }
		public ProjectItems (Project project, object parent, IPackageManagementFileService fileService)
		{
			this.Project = project;
			this.fileService = fileService;
			this.parent = parent;
		}
示例#34
0
 public ProjectItemsInsideProject(Project project, IPackageManagementFileService fileService)
 {
     this.project     = project;
     this.fileService = fileService;
 }
		public FileProjectItems (ProjectItem projectItem)
			: base ((Project)projectItem.ContainingProject, projectItem)
		{
			this.projectItem = projectItem;
			this.fileService = Project.FileService;
		}
 TestableSharpDevelopProjectSystem(MSBuildBasedProject project, IPackageManagementFileService fileService)
     : base(project, fileService)
 {
     FakeFileService = (FakeFileService)fileService;
     Logger          = FakeOutputMessagesView;
 }
 public FileProjectItems(ProjectItem projectItem, IPackageManagementFileService fileService)
     : base((Project)projectItem.ContainingProject, projectItem, fileService)
 {
     this.projectItem = projectItem;
     this.fileService = fileService;
 }
		TestableSharpDevelopProjectSystem(MSBuildBasedProject project, IPackageManagementFileService fileService)
			: base(project, fileService)
		{
			FakeFileService = (FakeFileService)fileService;
			Logger = FakeOutputMessagesView;
		}
示例#39
0
 ProjectItems(Project project, object parent, IPackageManagementFileService fileService)
 {
     this.Project     = project;
     this.fileService = fileService;
     this.parent      = parent;
 }
示例#40
0
		public FileProjectItems(ProjectItem projectItem, IPackageManagementFileService fileService)
			: base((Project)projectItem.ContainingProject, projectItem, fileService)
		{
			this.projectItem = projectItem;
			this.fileService = fileService;
		}