public CqrsModule(
     CqrsSettings settings,
     WorkflowSettings workflowSettings,
     BatchingSettings batchingSettings,
     string rabbitMqVirtualHost = null)
 {
     _settings            = settings;
     _workflowSettings    = workflowSettings;
     _batchingSettings    = batchingSettings;
     _rabbitMqVirtualHost = rabbitMqVirtualHost;
 }
Ejemplo n.º 2
0
        public void SuccessfulConstruction()
        {
            var batching0 = new BatchingSettings(null, null, null);

            Assert.Null(batching0.ElementCountThreshold);
            Assert.Null(batching0.ByteCountThreshold);
            Assert.Null(batching0.DelayThreshold);
            var batching1 = new BatchingSettings(1, 2, TimeSpan.FromSeconds(3));

            Assert.Equal(1, batching1.ElementCountThreshold);
            Assert.Equal(2, batching1.ByteCountThreshold);
            Assert.Equal(TimeSpan.FromSeconds(3), batching1.DelayThreshold);
        }