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(); }
public EventSubscriberTests() { this.serviceProvider = FakeConfig.BuildServiceProvider(); this.subscriber = new EventSubscriber(this.serviceProvider, FakeConfig.ProviderName); this.serializer = serviceProvider.GetRequiredServiceByName <ISerializer>(FakeConfig.Options.SerializationType); }
public EventPublisherTests() { IServiceProvider serviceProvider = FakeConfig.BuildServiceProvider(); this.publisher = new EventPublisher(serviceProvider, FakeConfig.ProviderName); }
public RabbitChannelFactoryTests() { IServiceProvider serviceProvider = FakeConfig.BuildServiceProvider(); this.channelFactory = new RabbitChannelFactory(serviceProvider, FakeConfig.ProviderName); }
public RabbitChannelTests() { this.serviceProvider = FakeConfig.BuildServiceProvider(); this.connection = new RabbitConnection(this.serviceProvider, FakeConfig.Options); this.channel = new RabbitChannel(this.connection); }
public RabbitConnectionTests() { this.options = FakeConfig.Options; this.serviceProvider = FakeConfig.BuildServiceProvider(); this.connection = new RabbitConnection(this.serviceProvider, this.options); }