Exemple #1
0
        public RabbitProducerTests()
        {
            IServiceProvider serviceProvider = FakeConfig.BuildServiceProvider();

            serializer = serviceProvider.GetRequiredServiceByName <ISerializer>(FakeConfig.Options.SerializationType);
            producer   = new RabbitProducer(serviceProvider, FakeConfig.ProviderName, serializer);
        }
 public RabbitConsumerTests()
 {
     serviceProvider     = FakeConfig.BuildServiceProvider();
     serializer          = serviceProvider.GetRequiredServiceByName <ISerializer>(FakeConfig.Options.SerializationType);
     this.consumer       = new RabbitConsumer(serviceProvider, FakeConfig.ProviderName, serializer);
     this.eventProcessor = new Mock <IEventProcessor>();
     this.consumeOptions = new RabbitConsumeOptions();
 }
Exemple #3
0
 public EventSubscriberTests()
 {
     this.serviceProvider = FakeConfig.BuildServiceProvider();
     this.subscriber      = new EventSubscriber(this.serviceProvider, FakeConfig.ProviderName);
     this.serializer      = serviceProvider.GetRequiredServiceByName <ISerializer>(FakeConfig.Options.SerializationType);
 }
Exemple #4
0
        public EventPublisherTests()
        {
            IServiceProvider serviceProvider = FakeConfig.BuildServiceProvider();

            this.publisher = new EventPublisher(serviceProvider, FakeConfig.ProviderName);
        }
Exemple #5
0
        public RabbitChannelFactoryTests()
        {
            IServiceProvider serviceProvider = FakeConfig.BuildServiceProvider();

            this.channelFactory = new RabbitChannelFactory(serviceProvider, FakeConfig.ProviderName);
        }
Exemple #6
0
 public RabbitChannelTests()
 {
     this.serviceProvider = FakeConfig.BuildServiceProvider();
     this.connection      = new RabbitConnection(this.serviceProvider, FakeConfig.Options);
     this.channel         = new RabbitChannel(this.connection);
 }
Exemple #7
0
 public RabbitConnectionTests()
 {
     this.options         = FakeConfig.Options;
     this.serviceProvider = FakeConfig.BuildServiceProvider();
     this.connection      = new RabbitConnection(this.serviceProvider, this.options);
 }