public void BroadcastSignalsSubject() { var block = new Block(); var subject = new Mock <ISubject <Block> >(); var signaler = new Signaler <Block>(subject.Object); signaler.Broadcast(block); subject.Verify(s => s.OnNext(block), Times.Exactly(1)); }
public void BroadcastSignalsSubject() { var block = KnownNetworks.StratisMain.CreateBlock(); var subject = new Mock <ISubject <Block> >(); var signaler = new Signaler <Block>(subject.Object); signaler.Broadcast(block); subject.Verify(s => s.OnNext(block), Times.Exactly(1)); }