public void TestSetup() { mockCommandRuntime = new MockCommandRuntime(); newServiceCmdlet = new NewAzureServiceProjectCommand(); newServiceCmdlet.CommandRuntime = mockCommandRuntime; }
public void GetServiceNameTest() { using (FileSystemHelper files = new FileSystemHelper(this)) { NewAzureServiceProjectCommand newServiceCmdlet = new NewAzureServiceProjectCommand(); newServiceCmdlet.CommandRuntime = new MockCommandRuntime(); newServiceCmdlet.NewAzureServiceProcess(files.RootPath, serviceName); Assert.AreEqual<string>(serviceName, new CloudServiceProject(Path.Combine(files.RootPath, serviceName), null).ServiceName); } }
public void SetupTest() { cmdlet = new NewAzureServiceProjectCommand(); mockCommandRuntime = new MockCommandRuntime(); cmdlet.CommandRuntime = mockCommandRuntime; }
public void SetupTest() { GlobalPathInfo.GlobalSettingsDirectory = Data.AzureSdkAppDir; CmdletSubscriptionExtensions.SessionManager = new InMemorySessionManager(); mockCommandRuntime = new MockCommandRuntime(); newServiceCmdlet = new NewAzureServiceProjectCommand(); addCacheRoleCmdlet = new AddAzureCacheWorkerRoleCommand(); newServiceCmdlet.CommandRuntime = mockCommandRuntime; addCacheRoleCmdlet.CommandRuntime = mockCommandRuntime; }