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"); }
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"); }