public void TestHandle()
        {
            var depositGuid        = Guid.NewGuid();
            var accountGuid        = Guid.NewGuid();
            var eventGuid          = Guid.NewGuid();
            var createDepositEvent = new CreateDepositEvent
            {
                ItemGuid    = depositGuid,
                AccountGuid = accountGuid,
                EventGuid   = eventGuid
            };
            var depositServiceMock = new Mock <IService <DepositModel> >();

            depositServiceMock.Setup(m =>
                                     m.Save(It.Is <DepositModel>(model => model.Guid == depositGuid && model.Account.Guid == accountGuid)));
            var eventHandler = new CreateDepositEventHandler(depositServiceMock.Object);

            eventHandler.Handle(createDepositEvent);

            depositServiceMock.VerifyAll();
        }
        public void TestCanNotHandle()
        {
            var eventHandler = new CreateDepositEventHandler(Mock.Of <IService <DepositModel> >());

            Assert.False(eventHandler.CanHandle(Mock.Of <IEvent>()));
        }