コード例 #1
0
        public void test_only_on_agents_no_list()
        {
            // Arrange
            var unit = new WindowsServiceDeployUnit();

            // Act & Assert
            Assert.That(unit.IsValidForAgent("test_machine"), Is.True);
        }
コード例 #2
0
        public void test_only_on_agents_when_direct_and_wildcardmatch()
        {
            // Arrange
            var unit = new WindowsServiceDeployUnit {
                OnlyOnAgents = new[] { "test_machine-01", "test_machine-*" }
            };

            // Act & Assert
            Assert.That(unit.IsValidForAgent("test_machine-01"), Is.True);
        }
コード例 #3
0
        public void test_only_on_agents_when_in_list()
        {
            // Arrange
            var unit = new WindowsServiceDeployUnit {
                OnlyOnAgents = new[] { "test_machine-02", "test_machine-01" }
            };

            // Act & Assert
            Assert.That(unit.IsValidForAgent("test_machine-01"), Is.True);
        }
 public StartStopWindowsServiceTask(WindowsServiceDeployUnit unit, bool stop)
 {
     _unit = unit;
     _stop = stop;
 }
コード例 #5
0
 public StartStopWindowsServiceTask(WindowsServiceDeployUnit unit, bool stop)
 {
     _unit = unit;
     _stop = stop;
 }
コード例 #6
0
 public KillWindowsServiceTask(WindowsServiceDeployUnit unit) => _unit = unit;