Beispiel #1
0
        public void Ctor_Where_Command_With_Single_Message_Delivery_Results_In_Object_Creation()
        {
            var _SUT = new PMCG.Messaging.Client.Configuration.MessagePublication(
                typeof(MyCommand),
                new []
            {
                new PMCG.Messaging.Client.Configuration.MessageDelivery(
                    "exchangeName1",
                    "typeHeader",
                    MessageDeliveryMode.Persistent,
                    message => string.Empty)
            });

            Assert.AreEqual(1, _SUT.Configurations.Count());
        }
		public void Ctor_Where_Command_With_Single_Message_Delivery_Results_In_Object_Creation()
		{
			var _SUT = new MessagePublication(
				typeof(MyCommand),
				new []
					{
						new MessageDelivery(
							"exchangeName1",
							"typeHeader",
							MessageDeliveryMode.Persistent,
							message => string.Empty)
					});

			Assert.AreEqual(1, _SUT.Configurations.Count());
		}