public void Setup() { _bus = MockRepository.GenerateStub<IBus>(); _productCreatedEventHandler = new ProductCreatedEventHandler(_bus); _productId = Guid.NewGuid(); }
public void Should_Convert_OK() { var productEventHandler = new ProductCreatedEventHandler(null); Assert.IsTrue(productEventHandler is IEventHandler<ProductCreatedEvent>); Assert.IsTrue(productEventHandler is IEventHandler<IEvent>); }