public void get_keys_from_name_value_collection()
        {
            var values = new NameValueCollection();
            values["a"] = "1";
            values["b"] = "2";
            values["c"] = "3";

            var headers = new NameValueHeaders(values);

            headers.Keys().ShouldHaveTheSameElementsAs("a", "b", "c");
        }
        public void get_and_set_with_name_value_collection()
        {
            var values = new NameValueCollection();
            values["a"] = "1";
            values["b"] = "2";

            var headers = new NameValueHeaders(values);
            headers["a"].ShouldBe("1");
            headers["b"].ShouldBe("2");

            headers["c"] = "3";

            values["c"].ShouldBe("3");
        }
        public void name_value_has()
        {
            var values = new NameValueCollection();
            values["a"] = "1";
            values["b"] = "2";

            var headers = new NameValueHeaders(values);

            headers.Has("a").ShouldBeTrue();
            headers.Has("c").ShouldBeFalse();
        }
 public EnvelopeToken()
 {
     Headers = new NameValueHeaders();
     CorrelationId = Guid.NewGuid().ToString();
 }