public VsPathContextProviderTests(DispatcherThreadFixture fixture) { Assumes.Present(fixture); _jtf = fixture.JoinableTaskFactory; NuGetUIThreadHelper.SetCustomJoinableTaskFactory(_jtf); }
public CpsPackageReferenceProjectProviderTests(DispatcherThreadFixture fixture) { Assumes.Present(fixture); _jtf = fixture.JoinableTaskFactory; NuGetUIThreadHelper.SetCustomJoinableTaskFactory(_jtf); }
public ProjectKNuGetProjectTests(DispatcherThreadFixture fixture) { Assumes.Present(fixture); _jtf = fixture.JoinableTaskFactory; NuGetUIThreadHelper.SetCustomJoinableTaskFactory(_jtf); }
public NuGetLockServiceTests(DispatcherThreadFixture fixture) { Assumes.Present(fixture); _jtf = fixture.JoinableTaskFactory; _lockService = new NuGetLockService(); Assert.False(_lockService.IsLockHeld); }
public NuGetLockServiceTests(DispatcherThreadFixture fixture) { Assumes.Present(fixture); _jtf = fixture.JoinableTaskFactory; _lockService = new NuGetLockService(fixture.JoinableTaskFactory.Context); NuGetUIThreadHelper.SetCustomJoinableTaskFactory(_jtf); Assert.False(_lockService.IsLockHeld); }
public SolutionRestoreBuildHandlerTests(DispatcherThreadFixture fixture) { Assumes.Present(fixture); _jtf = fixture.JoinableTaskFactory; #pragma warning disable VSSDK005 // Avoid instantiating JoinableTaskContext var joinableTaskContext = new JoinableTaskContext(Thread.CurrentThread, SynchronizationContext.Current); #pragma warning restore VSSDK005 // Avoid instantiating JoinableTaskContext NuGetUIThreadHelper.SetCustomJoinableTaskFactory(_jtf); }
public NuGetProjectManagerServiceTests(DispatcherThreadFixture dispatcherThreadFixture) { Assert.NotNull(dispatcherThreadFixture); _projectContext = new TestNuGetProjectContext(); _services = new Dictionary <Type, Task <object> >() { { typeof(INuGetProjectContext), Task.FromResult <object>(_projectContext) } }; ServiceLocator.InitializePackageServiceProvider(this); NuGetUIThreadHelper.SetCustomJoinableTaskFactory(dispatcherThreadFixture.JoinableTaskFactory); }
public PackageItemListViewModelTests(DispatcherThreadFixture fixture, ITestOutputHelper output, LocalPackageSearchMetadataFixture testData) { _testData = testData; _testInstance = new PackageItemListViewModel() { PackageReader = _testData.TestData.PackageReader, }; _output = output; Assumes.Present(fixture); _jtf = fixture.JoinableTaskFactory; NuGetUIThreadHelper.SetCustomJoinableTaskFactory(_jtf); }
public LegacyPackageReferenceRestoreUtilityTests(DispatcherThreadFixture fixture) { Assumes.Present(fixture); _threadingService = new TestProjectThreadingService(fixture.JoinableTaskFactory); }
public SolutionRestoreBuildHandlerTests(DispatcherThreadFixture fixture) { Assumes.Present(fixture); _jtf = fixture.JoinableTaskFactory; }
public VisualStudioCredentialProviderTests(DispatcherThreadFixture fixture) { _fixture = fixture; }