public void Subscribe()
        {
            var server = new ParameterServer(new Uri("http://localhost"));

            var slave    = new SlaveServer("test", 0, new TopicContainer());
            var observer = new ReplaySubject <KeyValuePair <string, object> >();

            slave.ParameterUpdated += (key, value) => observer.OnNext(new KeyValuePair <string, object>(key, value));

            server.SetParam("test", "test_param", 1234);

            server.SubscribeParam("test", slave.SlaveUri.ToString(), "test_param");

            server.SetParam("test", "test_param", 5678);

            observer.First().Key.Is("test_param");
            observer.First().Value.Is(5678);
        }
        public void SetGet()
        {
            var server = new ParameterServer(new Uri("http://localhost"));

            server.HasParam("test", "test_param")[2].Is(false);

            server.SetParam("test", "test_param", 1234);

            server.HasParam("test", "test_param")[2].Is(true);

            server.GetParam("test", "test_param")[2].Is(1234);
        }
 public object[] SetParam(string callerId, string key, object value)
 {
     return(_parameterServer.SetParam(callerId, key, value));
 }