private void AddKnownClient(KnownGraphiteClients knownGraphiteClients, SqlToGraphiteConfigClientsClient client)
 {
     if (knownGraphiteClients.IsKnown(client.name))
     {
         this.clientList.Add(client.name, client.port);
     }
     else
     {
         Errors.Add(string.Format("{0} {1}", UnknownClient, client.name));
     }
 }
 public void Should_know_statsdudp()
 {
     var knownGraphiteClients = new KnownGraphiteClients();
     Assert.IsTrue(knownGraphiteClients.IsKnown("statsdudp"));
 }
 public void Should_not_know_other()
 {
     var knownGraphiteClients = new KnownGraphiteClients();
     Assert.IsFalse(knownGraphiteClients.IsKnown("unknown"));
 }
 public void Should_know_nativetcp()
 {
     var knownGraphiteClients = new KnownGraphiteClients();
     Assert.IsTrue(knownGraphiteClients.IsKnown("graphitetcp"));
 }