public async Task Broadcast_GivenMessage_RelaysMessageToSubscribers() { _relay.AddSubscriber(_spySubscriber); _relay.Broadcast(_message); await _relay.Complete(); var receivedMessage = _spySubscriber.ReceivedMessages.Single(); Assert.That(receivedMessage.Body, Is.EqualTo(_message.Body)); }
public void BroadcastSingleMessage() { _relay.Broadcast(_message); }
void Update() { connection.Send(Relay.Broadcast(header, content)); }