Example #1
0
        public void TransactedBatchingElement_defaults()
        {
            TransactedBatchingElement element = new TransactedBatchingElement();

            Assert.AreEqual(typeof(TransactedBatchingBehavior), element.BehaviorType, "BehaviorType");
            Assert.AreEqual("transactedBatching", element.ConfigurationElementName, "ConfigurationElementName");

            Assert.AreEqual(0, element.MaxBatchSize, "MaxBatchSize");
        }
Example #2
0
        public void TransactedBatchingElement()
        {
            EndpointBehaviorElement   behavior = OpenConfig();
            TransactedBatchingElement element  = (TransactedBatchingElement)behavior [typeof(TransactedBatchingElement)];

            if (element == null)
            {
                Assert.Fail("TransactedBatchingElement is not exist in collection.");
            }

            Assert.AreEqual(typeof(TransactedBatchingBehavior), element.BehaviorType, "BehaviorType");
            Assert.AreEqual("transactedBatching", element.ConfigurationElementName, "ConfigurationElementName");

            Assert.AreEqual(16, element.MaxBatchSize, "MaxBatchSize");
        }