public void GetStaticBindingContract_ReturnsExpectedValue() { var strategy = new ServiceBusTriggerBindingStrategy(); var bindingDataContract = strategy.GetBindingContract(); CheckBindingContract(bindingDataContract); }
public void GetBindingContract_SingleDispatch_ReturnsExpectedValue() { var strategy = new ServiceBusTriggerBindingStrategy(); var bindingDataContract = strategy.GetBindingContract(true); CheckBindingContract(bindingDataContract); }
public void GetBindingContract_MultipleDispatch_ReturnsExpectedValue() { var strategy = new ServiceBusTriggerBindingStrategy(); var bindingDataContract = strategy.GetBindingContract(false); Assert.AreEqual(BindingContractCount, bindingDataContract.Count); Assert.AreEqual(typeof(int[]), bindingDataContract["DeliveryCountArray"]); Assert.AreEqual(typeof(string[]), bindingDataContract["DeadLetterSourceArray"]); Assert.AreEqual(typeof(string[]), bindingDataContract["LockTokenArray"]); Assert.AreEqual(typeof(DateTime[]), bindingDataContract["ExpiresAtUtcArray"]); Assert.AreEqual(typeof(DateTime[]), bindingDataContract["EnqueuedTimeUtcArray"]); Assert.AreEqual(typeof(string[]), bindingDataContract["MessageIdArray"]); Assert.AreEqual(typeof(string[]), bindingDataContract["ContentTypeArray"]); Assert.AreEqual(typeof(string[]), bindingDataContract["ReplyToArray"]); Assert.AreEqual(typeof(long[]), bindingDataContract["SequenceNumberArray"]); Assert.AreEqual(typeof(string[]), bindingDataContract["ToArray"]); Assert.AreEqual(typeof(string[]), bindingDataContract["LabelArray"]); Assert.AreEqual(typeof(string[]), bindingDataContract["CorrelationIdArray"]); Assert.AreEqual(typeof(string[]), bindingDataContract["ReplyToSessionIdArray"]); Assert.AreEqual(typeof(string[]), bindingDataContract["SessionIdArray"]); Assert.AreEqual(typeof(IDictionary <string, object>[]), bindingDataContract["ApplicationPropertiesArray"]); Assert.AreEqual(typeof(ServiceBusMessageActions), bindingDataContract["MessageReceiver"]); Assert.AreEqual(typeof(ServiceBusSessionMessageActions), bindingDataContract["MessageSession"]); Assert.AreEqual(typeof(ServiceBusMessageActions), bindingDataContract["MessageActions"]); Assert.AreEqual(typeof(ServiceBusSessionMessageActions), bindingDataContract["SessionActions"]); }