コード例 #1
0
        public void Setup()
        {
            _bus = MockRepository.GenerateStub<IBus>();
            _productCreatedEventHandler = new ProductCreatedEventHandler(_bus);

            _productId = Guid.NewGuid();
        }
コード例 #2
0
        public void Should_Convert_OK()
        {
            var productEventHandler = new ProductCreatedEventHandler(null);

            Assert.IsTrue(productEventHandler is IEventHandler<ProductCreatedEvent>);

            Assert.IsTrue(productEventHandler is IEventHandler<IEvent>);
        }