public void Should_return_a_graphite_message_list()
 {
     var list = new List<IResult>();
     var res = new Result("name", new DateTime(2012, 12, 11, 10, 9, 8), "path");
     res.SetValue(123);
     list.Add(res);
     var graphiteMetrics = new GraphiteMetrics(list);
     var msgList = graphiteMetrics.ToGraphiteMessageList();
     string msg = "path.name 123 1355220548\n";
     Assert.That(msgList, Is.EqualTo(msg));
 }
 public override void Send(IList<IResult> result)
 {
     var client = new Graphite.GraphiteUdpClient(Hostname, Port);
     var gs = new GraphiteMetrics(result);
     client.Send(gs);
 }
 public void Send(GraphiteMetrics graphiteMetrics)
 {
     var msg = graphiteMetrics.ToGraphiteMessageList();
     var v = Encoding.UTF8.GetBytes(msg);
     _udpClient.Send(v, v.Length);
 }
 public void Send(GraphiteMetrics graphiteMetrics)
 {
     var msg = graphiteMetrics.ToGraphiteMessageList();
     var v = Encoding.UTF8.GetBytes(msg);
     this.WriteToStream(v);
 }