Exemple #1
0
        public void A_configured_messaging_base()
        {
            var config = new MessagingBaseConfiguration()
                         .WithDefaults()
                         .WithContractRoot <IMsg>()
                         .WithConnection(ConfigurationHelpers.RabbitMqConnectionWithConfigSettings())
                         .WithApplicationGroupName("app-group-name");

            messaging = config.GetMessagingBase();
            query     = ConfigurationHelpers.RabbitMqQueryWithConfigSettings();

            testMessage = new SuperMetadata
            {
                CorrelationId = Guid.NewGuid(),
                Contents      = "This is my message",
                FilePath      = @"C:\temp\",
                HashValue     = 893476,
                MetadataName  = "KeyValuePair"
            };
        }
		public void Configured_with_message_query ()
		{
			MessagingSystem.Configure.WithDefaults().SetManagementServer("host", 12345, "user", "pass", "vhost");
			subject = ObjectFactory.GetInstance<IRabbitMqQuery>();
		}