public void TestSetup()
 {
     mockCommandRuntime = new MockCommandRuntime();
     newServiceCmdlet = new NewAzureServiceProjectCommand();
     newServiceCmdlet.CommandRuntime = mockCommandRuntime;
 }
Exemplo n.º 2
0
 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;
        }