Exemple #1
0
        public void ShouldNotRegisterForQueueAndTopic()
        {
            //Given
            _target.RegisterQueue <SecondMessage>(_queues.Add);

            //When Then
            Assert.ThrowsException <HandlerAlreadyUsedException>(() =>
                                                                 _target.RegisterTopic <SecondMessage>(_topics.Add));
        }
Exemple #2
0
 public ItemsProjection(E05.Test.Infrastructure.Bus bus)
 {
     bus.RegisterTopic <InventoryItemCreated>(Handle);
     bus.RegisterTopic <ItemNameModified>(Handle);
 }