コード例 #1
0
        public void AutoAssignHeader()
        {
            KeyValuePair <string, string> header = HeaderFormatter.SforceAutoAssign(false);

            string result = string.Format("{0}: {1}", header.Key, header.Value);

            Assert.Equal("Sforce-Auto-Assign: FALSE", result);
        }
コード例 #2
0
        public void AutoAssignHeader()
        {
            Dictionary <string, string> customHeaders = HeaderFormatter.SforceAutoAssign(false);

            Assert.Single(customHeaders);

            var header = customHeaders.First();

            string result = string.Format("{0}: {1}", header.Key, header.Value);

            Assert.Equal("Sforce-Auto-Assign: FALSE", result);
        }