Esempio n. 1
0
        public static IServiceCollection AddVoglerAmqpService(this IServiceCollection service, Action <AmqpServiceConfig> options)
        {
            var cfg = new AmqpServiceConfig();

            options.Invoke(cfg);

            service.AddSingleton(cfg);
            service.AddSingleton <IAmqpService, AmqpService>();
            return(service);
        }
Esempio n. 2
0
        public AmqpFixture()
        {
            var conf = new AmqpServiceConfig()
            {
                ConnectionString = "amqp://*****:*****@localhost:5672",
                ClientName       = "SmartDevicesGateway"
            };

            AmqpService = new AmqpServiceMock(conf);
        }
Esempio n. 3
0
 public AmqpServiceMock(AmqpServiceConfig amqpConfig) : base(amqpConfig)
 {
     this.amqpConfig = amqpConfig;
 }