1 write to Workspace
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EncapsulateField\EncapsulateFieldTestState.cs (1)
33
Workspace
= workspace;
6 references to Workspace
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
EncapsulateField\EncapsulateFieldTestState.cs (6)
34
_testDocument =
Workspace
.Documents.Single(d => d.CursorPosition.HasValue || d.SelectedSpans.Any());
35
TargetDocument =
Workspace
.CurrentSolution.GetDocument(_testDocument.Id);
37
var notificationService =
Workspace
.Services.GetService<INotificationService>() as INotificationServiceCallback;
58
var commandHandler =
Workspace
.ExportProvider.GetCommandHandler<EncapsulateFieldCommandHandler>(PredefinedCommandHandlerNames.EncapsulateField, ContentTypeNames.CSharpContentType);
59
var provider =
Workspace
.ExportProvider.GetExportedValue<IAsynchronousOperationListenerProvider>();
66
=>
Workspace
?.Dispose();