public void test_only_on_agents_no_list() { // Arrange var unit = new WindowsServiceDeployUnit(); // Act & Assert Assert.That(unit.IsValidForAgent("test_machine"), Is.True); }
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); }
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; }
public KillWindowsServiceTask(WindowsServiceDeployUnit unit) => _unit = unit;