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); }
public AmqpFixture() { var conf = new AmqpServiceConfig() { ConnectionString = "amqp://*****:*****@localhost:5672", ClientName = "SmartDevicesGateway" }; AmqpService = new AmqpServiceMock(conf); }
public AmqpServiceMock(AmqpServiceConfig amqpConfig) : base(amqpConfig) { this.amqpConfig = amqpConfig; }