public void TestGetValues()
        {
            var    requestHeaders = new CosmosResponseMessageHeaders();
            string value1         = Guid.NewGuid().ToString();

            requestHeaders.Add(Key, value1);
            IEnumerable <string> values = requestHeaders.GetValues(Key);

            Assert.AreEqual(1, values.Count());
        }
        public void TestAddAndGetAndSet()
        {
            string value1         = Guid.NewGuid().ToString();
            string value2         = Guid.NewGuid().ToString();
            var    requestHeaders = new CosmosResponseMessageHeaders();

            requestHeaders.Add(Key, value1);
            Assert.AreEqual(value1, requestHeaders.Get(Key));
            requestHeaders.Set(Key, value2);
            Assert.AreEqual(value2, requestHeaders.Get(Key));
        }
        public void TestAllKeysWithKnownProperties()
        {
            var requestHeaders = new CosmosResponseMessageHeaders();

            requestHeaders.CosmosMessageHeaders[Key] = Guid.NewGuid().ToString();
            requestHeaders.Continuation = Guid.NewGuid().ToString();
            requestHeaders.CosmosMessageHeaders[HttpConstants.HttpHeaders.RetryAfterInMilliseconds] = "20";
            requestHeaders.Add(WFConstants.BackendHeaders.SubStatus, "1002");
            var allKeys = requestHeaders.AllKeys();

            Assert.IsTrue(allKeys.Contains(Key));
            Assert.IsTrue(allKeys.Contains(HttpConstants.HttpHeaders.RetryAfterInMilliseconds));
            Assert.IsTrue(allKeys.Contains(HttpConstants.HttpHeaders.Continuation));
            Assert.IsTrue(allKeys.Contains(WFConstants.BackendHeaders.SubStatus));
        }