public bool HasAgent(AgentWrapper agent, AgentState agentState) { return Retry.UntilTrue( () => { var found = agents.GetAgent(a => a.Name.Equals(agent.TestRunner.Name) && a.Status.Equals(agentState)); return found != null; }, 500); }
/// <summary> /// Determines whether the server has a connected agent with the specified name. /// </summary> /// <param name="agent">The agent.</param> /// <returns> /// <c>true</c> if the server has a connected agent with the specified name; otherwise, <c>false</c>. /// </returns> public bool HasAReady(AgentWrapper agent) { string agentName = agent.TestRunner.Name; return HasAReady(agentName); }
public bool HasADisconnected(AgentWrapper agent) { string agentName = agent.TestRunner.Name; return HasADisconnected(agentName); }
private EventArgs<EndpointAddress> GetEndpointConnectionChangedEventArgs(AgentWrapper agent) { return new EventArgs<EndpointAddress>( new EndpointAddress("http://testHostName.com/" + agent.TestRunner.Name + "/")); }