public async Task WriteAsync_SomeMessages_TableStillEmpty() { await _queueWriter.WriteAsync( _sampleOutboundEnvelope.Message, _sampleOutboundEnvelope.RawMessage.ReadAll(), _sampleOutboundEnvelope.Headers, _sampleOutboundEnvelope.Endpoint.Name, _sampleOutboundEnvelope.ActualEndpointName); await _queueWriter.WriteAsync( _sampleOutboundEnvelope.Message, _sampleOutboundEnvelope.RawMessage.ReadAll(), _sampleOutboundEnvelope.Headers, _sampleOutboundEnvelope.Endpoint.Name, _sampleOutboundEnvelope.ActualEndpointName); await _queueWriter.WriteAsync( _sampleOutboundEnvelope.Message, _sampleOutboundEnvelope.RawMessage.ReadAll(), _sampleOutboundEnvelope.Headers, _sampleOutboundEnvelope.Endpoint.Name, _sampleOutboundEnvelope.ActualEndpointName); _dbContext.Outbox.Should().HaveCount(0); }
public void Enqueue_SomeMessages_TableStillEmpty() { _queueWriter.WriteAsync(SampleOutboundEnvelope); _queueWriter.WriteAsync(SampleOutboundEnvelope); _queueWriter.WriteAsync(SampleOutboundEnvelope); _dbContext.Outbox.Should().HaveCount(0); }