public void TestProxyAnnotations() { var p = new CustomAnnProxy(new PyroURI("PYRO:dummy@localhost:50000")) { correlation_id = Guid.NewGuid() }; var annotations = p.annotations(); Assert.Equal(1, annotations.Count); Assert.True(annotations.ContainsKey("XYZZ")); }
public void testProxyAnnotations() { var p = new CustomAnnProxy(new PyroURI("PYRO:dummy@localhost:50000")); p.pyroHmacKey = Encoding.UTF8.GetBytes("secret"); p.correlation_id = Guid.NewGuid(); var annotations = p.annotations(); Assert.AreEqual(2, annotations.Count); Assert.IsTrue(annotations.ContainsKey("CORR")); Assert.IsTrue(annotations.ContainsKey("XYZZ")); }