コード例 #1
0
ファイル: WinTests.cs プロジェクト: yonglehou/dropkick
        public void RemoteDelete()
        {
            //TODO: friggin 2008 LUA-must run as admin
            var t = new WinServiceDeleteTask("SrvTestWeb01", "FHLBank.Cue");

            DeploymentResult o = t.VerifyCanRun();

            t.Execute();
        }
コード例 #2
0
        public void RemoteDelete()
        {
            var authInfo = GetAuthenticationInfo();

            WmiService.WithAuthentication(authInfo.ServiceUserName, authInfo.ServicePassword);

            var t = new WinServiceDeleteTask(authInfo.MachineName, "DropkicKTestService");

            DeploymentResult o = t.VerifyCanRun();

            Log(o);
            AssertSuccess(o);
            var result = t.Execute();

            Log(result);
            AssertSuccess(result);
        }