コード例 #1
0
 public void QueryOptionsHeaderMinException()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         var customHeaders = HeaderFormatter.SforceQueryOptions(0);
     });
 }
コード例 #2
0
        public void QueryOptionsHeader()
        {
            KeyValuePair <string, string> header = HeaderFormatter.SforceQueryOptions(1000);

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

            Assert.Equal("Sforce-Query-Options: batchSize=1000", result);
        }
コード例 #3
0
        public void QueryOptionsHeader()
        {
            Dictionary <string, string> customHeaders = HeaderFormatter.SforceQueryOptions(1000);

            Assert.Single(customHeaders);

            var header = customHeaders.First();

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

            Assert.Equal("Sforce-Query-Options: batchSize=1000", result);
        }