示例#1
0
 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);
 }
示例#2
0
        /// <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);
        }
示例#3
0
 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 + "/"));
 }