Exemple #1
0
        public static VisualBasicNamespaceImportsList CreateInstance(params string[] list)
        {
            var newList = new VisualBasicNamespaceImportsList();

            newList.SetList(list.ToList());

            return(newList);
        }
 private VisualBasicVSImports CreateInstance(
     VSLangProj.VSProject vsProject            = null,
     IProjectThreadingService threadingService = null,
     ActiveConfiguredProject <ConfiguredProject> activeConfiguredProject = null,
     IProjectAccessor projectAccessor           = null,
     IUnconfiguredProjectVsServices vsServices  = null,
     VisualBasicNamespaceImportsList importList = null)
 {
     return(new VisualBasicVSImports(vsProject, threadingService, activeConfiguredProject, projectAccessor, vsServices, importList));
 }
Exemple #3
0
        public VisualBasicVSImports(
            [Import(ExportContractNames.VsTypes.CpsVSProject)] VSLangProj.VSProject vsProject,
            IProjectThreadingService threadingService,
            ActiveConfiguredProject <ConfiguredProject> activeConfiguredProject,
            IProjectAccessor projectAccessor,
            IUnconfiguredProjectVsServices unconfiguredProjectVSServices,
            VisualBasicNamespaceImportsList importsList)
        {
            _vsProject = vsProject;
            _activeConfiguredProject       = activeConfiguredProject;
            _projectAccessor               = projectAccessor;
            _threadingService              = threadingService;
            _unconfiguredProjectVSServices = unconfiguredProjectVSServices;
            _importsList = importsList;

            AddEventSource(this);
        }
Exemple #4
0
        public VisualBasicVSImports(
            [Import(ExportContractNames.VsTypes.CpsVSProject)] VSLangProj.VSProject vsProject,
            IProjectThreadingService threadingService,
            ActiveConfiguredProject <ConfiguredProject> activeConfiguredProject,
            IProjectLockService lockService,
            IUnconfiguredProjectVsServices unconfiguredProjectVSServices,
            VisualBasicNamespaceImportsList importsList)
        {
            Requires.NotNull(vsProject, nameof(vsProject));
            Requires.NotNull(threadingService, nameof(threadingService));
            Requires.NotNull(activeConfiguredProject, nameof(activeConfiguredProject));
            Requires.NotNull(lockService, nameof(lockService));
            Requires.NotNull(unconfiguredProjectVSServices, nameof(unconfiguredProjectVSServices));
            Requires.NotNull(importsList, nameof(importsList));

            _vsProject = vsProject;
            _activeConfiguredProject       = activeConfiguredProject;
            _lockService                   = lockService;
            _threadingService              = threadingService;
            _unconfiguredProjectVSServices = unconfiguredProjectVSServices;
            _importsList                   = importsList;

            AddEventSource(this);
        }
        public void Constructor_NotNull()
        {
            var list = new VisualBasicNamespaceImportsList(Mock.Of <IActiveConfiguredProjectSubscriptionService>());

            Assert.NotNull(list);
        }