Пример #1
0
        public void Build_ShouldReturnEventPublisher()
        {
            var publisher = PublisherFactory.Build(this.mockedBus.Object);

            Assert.NotNull(publisher);
            Assert.IsType <EventPublisher>(publisher);
        }
Пример #2
0
 public void Build_ShouldThrowArgumentNullException_WhenBusIsNull()
 {
     Assert.Throws <ArgumentNullException>(() => PublisherFactory.Build(null));
 }