public void Build_ShouldReturnEventPublisher() { var publisher = PublisherFactory.Build(this.mockedBus.Object); Assert.NotNull(publisher); Assert.IsType <EventPublisher>(publisher); }
public void Build_ShouldThrowArgumentNullException_WhenBusIsNull() { Assert.Throws <ArgumentNullException>(() => PublisherFactory.Build(null)); }