//[Fact] public async Task Should_be_able_to_send_a_message() { var sut = new TcpMessagingClient(); await sut.Open("localhost", _serverPort); await sut.SendAsync("Hello world"); var message = await ReceiveMessageInServer(); message.Body.Should().Be("Hello world"); }
public async Task Should_be_able_to_connect() { var sut = new TcpMessagingClient(); await sut.Open("localhost", _serverPort); }
public MessagingClient(MessagingClientConfiguration configuration) { _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _fileQueue = new FileQueue(_configuration.QueueDirectory, _configuration.EndpointName); _tcpClient = new TcpMessagingClient(); }