public NewAzureServiceTests()
 {
     cmdlet = new NewAzureServiceProjectCommand();
     mockCommandRuntime = new MockCommandRuntime();
     cmdlet.CommandRuntime = mockCommandRuntime;
     TestMockSupport.TestExecutionFolder = AppDomain.CurrentDomain.BaseDirectory;
 }
        public AddAzureCacheWorkerRoleTests()
        {
            AzureTool.IgnoreMissingSDKError = true;
            AzurePowerShell.ProfileDirectory = Test.Utilities.Common.Data.AzureSdkAppDir;
            mockCommandRuntime = new MockCommandRuntime();

            newServiceCmdlet = new NewAzureServiceProjectCommand();
            addCacheRoleCmdlet = new AddAzureCacheWorkerRoleCommand();

            newServiceCmdlet.CommandRuntime = mockCommandRuntime;
            addCacheRoleCmdlet.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.Equal<string>(serviceName, new CloudServiceProject(Path.Combine(files.RootPath, serviceName), null).ServiceName);
     }
 }
 public NewAzureServiceTests()
 {
     cmdlet = new NewAzureServiceProjectCommand();
     mockCommandRuntime = new MockCommandRuntime();
     cmdlet.CommandRuntime = mockCommandRuntime;
 }
 public ServiceComponentsTests()
 {
     mockCommandRuntime = new MockCommandRuntime();
     newServiceCmdlet = new NewAzureServiceProjectCommand();
     newServiceCmdlet.CommandRuntime = mockCommandRuntime;
 }