public TestConfiguredProject(TestUnconfiguredProject unconfiguredProject, TestPropertyData[] data) { UnconfiguredProject = unconfiguredProject; Services = new TestConfiguredProjectServices(this, data); ProjectConfiguration = new StandardProjectConfiguration( "Debug|AnyCPU", ImmutableDictionary <string, string> .Empty.Add("Configuration", "Debug").Add("Platform", "AnyCPU")); }
public TestConfiguredProject(TestUnconfiguredProject unconfiguredProject, TestPropertyData[] data) { UnconfiguredProject = unconfiguredProject; var services = new Mock <ConfiguredProjectServices>(MockBehavior.Strict); services.Setup(s => s.AdditionalRuleDefinitions).Returns(new TestAdditionalRuleDefinitionsService()); services.Setup(s => s.PropertyPagesCatalog).Returns(new TestPropertyPagesCatalogProvider(new TestPropertyPagesCatalog(data))); services.Setup(s => s.ProjectService).Returns(UnconfiguredProject.ProjectService); Services = services.Object; ProjectConfiguration = new StandardProjectConfiguration( "Debug|AnyCPU", ImmutableDictionary <string, string> .Empty.Add("Configuration", "Debug").Add("Platform", "AnyCPU")); }
public TestProjectSystemServices(string fullPath, params TestPropertyData[] data) { ProjectService = new TestProjectService(); ThreadingService = ProjectService.Services.TestThreadingPolicy; UnconfiguredProject = new TestUnconfiguredProject(ProjectService, fullPath); ProjectService.LoadedUnconfiguredProjects.Add(UnconfiguredProject); ActiveConfiguredProject = new TestConfiguredProject(UnconfiguredProject, data); UnconfiguredProject.LoadedConfiguredProjects.Add(ActiveConfiguredProject); ActiveConfiguredProjectAssemblyReferences = new TestAssemblyReferencesService(); ActiveConfiguredProjectRazorProperties = new Rules.RazorProjectProperties(ActiveConfiguredProject, UnconfiguredProject); ActiveConfiguredProjectSubscription = new TestActiveConfiguredProjectSubscriptionService(); TasksService = new TestProjectAsynchronousTasksService(ProjectService, UnconfiguredProject, ActiveConfiguredProject); }