V1.1

Rating: No reviews yet
Downloads: 334
Released: May 5, 2010
Updated: May 5, 2010 by Bnaya
Dev status: Beta Help Icon

Recommended Download

Source Code Source
source code, 782K, uploaded May 5, 2010 - 224 downloads

Other Available Downloads

Application dll
application, 14K, uploaded May 5, 2010 - 110 downloads

Release Notes

EventPublisherHost

new contribution made by José F. Romaniello
http://jfromaniello.blogspot.com/2010/04/event-aggregator-example.html


TestMethod
public void PublishEvent_DoesCatchAfterDispose()
{
const int value = 10;

var sub1Mock = new Mock<IObserver<int>>();

IDisposable disp = EventPublisherHost.GetEvent<int>().Subscribe(sub1Mock.Object);
EventPublisherHost.Publish<int>(value);
disp.Dispose();
EventPublisherHost.Publish<int>(value);

sub1Mock.Verify(o => o.OnNext(It.IsAny<int>()), Times.Once());
}

Reviews for this release

No reviews yet for this release.