public void TestCanNotHandle() { var eventHandler = new AddDepositToAccountEventHandler(); Assert.False(eventHandler.CanHandle(Mock.Of <IEvent>())); }
public void TestCanHandle() { var eventHandler = new AddDepositToAccountEventHandler(); Assert.True(eventHandler.CanHandle(new AddDepositToAccountEvent())); }