Exemplo n.º 1
0
        public void Build_ShouldReturnEventPublisher()
        {
            var publisher = PublisherFactory.Build(this.mockedBus.Object);

            Assert.NotNull(publisher);
            Assert.IsType <EventPublisher>(publisher);
        }
Exemplo n.º 2
0
 public void Build_ShouldThrowArgumentNullException_WhenBusIsNull()
 {
     Assert.Throws <ArgumentNullException>(() => PublisherFactory.Build(null));
 }