コード例 #1
0
 public void should_work_remotely_as_well()
 {
     var t = new LogOnAsBatchTask(new DeploymentServer("127.0.0.1"), WindowsIdentity.GetCurrent().Name);
     var r = t.Execute();
     r.LogToConsole();
     Assert.AreEqual(false, r.ContainsError());
 }
コード例 #2
0
 public void Execute()
 {
     var t = new LogOnAsBatchTask(new DeploymentServer(Environment.MachineName), WindowsIdentity.GetCurrent().Name);
     var r = t.Execute();
     r.LogToConsole();
     Assert.AreEqual(false, r.ContainsError());
 }
コード例 #3
0
 public void Verify()
 {
     var t = new LogOnAsBatchTask(new DeploymentServer(Environment.MachineName),  WindowsIdentity.GetCurrent().Name);
     var r = t.VerifyCanRun();
 }
コード例 #4
0
 public void Verify()
 {
     var t = new LogOnAsBatchTask(Environment.MachineName, "test\\reynoldsr");
     var r = t.VerifyCanRun();
 }
コード例 #5
0
 public void Execute()
 {
     var t = new LogOnAsBatchTask(Environment.MachineName, "test\\reynoldsr");
     var r = t.Execute();
 }
コード例 #6
0
 public void Execute()
 {
     var t = new LogOnAsBatchTask(Environment.MachineName,  WindowsIdentity.GetCurrent().Name);
     var r = t.Execute();
 }