public RabbitConnectionFixtureBuilder WithOpenConection() { var connection = this.factory.CreateConnection(); this.rabbitConnection = RabbitConnectionFixtureBuilder.New(this, connection); return(this.rabbitConnection); }
private RabbitChannelFixtureBuilder(RabbitConnectionFixtureBuilder rabbitConnection, IModel channel) { Ensure.ThatIsNotNull(rabbitConnection); this.connection = rabbitConnection; Ensure.ThatIsNotNull(channel); this.channel = channel; }
public static RabbitChannelFixtureBuilder New(RabbitConnectionFixtureBuilder rabbitConnection, IModel channel) => new RabbitChannelFixtureBuilder(rabbitConnection, channel);