public void SetupTest() { GlobalPathInfo.GlobalSettingsDirectory = Data.AzureSdkAppDir; CmdletSubscriptionExtensions.SessionManager = new InMemorySessionManager(); mockCommandRuntime = new MockCommandRuntime(); cloudServiceClientMock = new Mock<ICloudServiceClient>(); stopServiceCmdlet = new StartAzureServiceCommand() { CloudServiceClient = cloudServiceClientMock.Object, CommandRuntime = mockCommandRuntime }; }
public void SetupTest() { GlobalPathInfo.GlobalSettingsDirectory = Data.AzureSdkAppDir; CmdletSubscriptionExtensions.SessionManager = new InMemorySessionManager(); mockCommandRuntime = new MockCommandRuntime(); channel = new SimpleServiceManagement(); startServiceCmdlet = new StartAzureServiceCommand(channel) { ShareChannel = true }; startServiceCmdlet.CommandRuntime = mockCommandRuntime; }