コード例 #1
0
 public void TestSetup()
 {
     mockCommandRuntime = new MockCommandRuntime();
     newServiceCmdlet = new NewAzureServiceProjectCommand();
     newServiceCmdlet.CommandRuntime = mockCommandRuntime;
 }
コード例 #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);
     }
 }
コード例 #3
0
 public void SetupTest()
 {
     cmdlet = new NewAzureServiceProjectCommand();
     mockCommandRuntime = new MockCommandRuntime();
     cmdlet.CommandRuntime = mockCommandRuntime;
 }
コード例 #4
0
        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;
        }