public void ConsumePublishesEvent([Frozen] Mock <IChannel> channelMock, RejectingReservationConsumer sut, MakeReservationCommand cmd)
        {
            var expectedEvent = cmd.Reject().AsSource().OfLikeness <ReservationRejectedEvent>();

            sut.Consume(cmd);
            channelMock.Verify(c => c.Send(expectedEvent));
        }
 public void SutIsCorrectConsumer(RejectingReservationConsumer sut)
 {
     Assert.IsAssignableFrom<IMessageConsumer<MakeReservationCommand>>(sut);
 }
 public void SutIsCorrectConsumer(RejectingReservationConsumer sut)
 {
     Assert.IsAssignableFrom <IMessageConsumer <MakeReservationCommand> >(sut);
 }
 public void ConsumePublishesEvent([Frozen]Mock<IChannel> channelMock, RejectingReservationConsumer sut, MakeReservationCommand cmd)
 {
     var expectedEvent = cmd.Reject().AsSource().OfLikeness<ReservationRejectedEvent>();
     sut.Consume(cmd);
     channelMock.Verify(c => c.Send(expectedEvent));
 }