public void ExecuteDeleteCmdApplicationConfigurationCommandWithNullThrowsException( CmdApplicationConfigurationService sut) { DeleteCmdApplicationConfigurationCommand NullCommand = null; Assert.Throws <ArgumentNullException>(() => sut.Execute(NullCommand)); }
public void ExecuteDeleteCmdApplicationConfigurationCommandWithNullThrowsException( CmdApplicationConfigurationService sut, TestDomainEventHandler <ConfigurationDeletedEvent> deleteHandler, DeleteCmdApplicationConfigurationCommand command) { DomainEvents.Subscribe(deleteHandler); sut.Execute(command); Assert.True(deleteHandler.EventHandlerInvoked); }
public void ExecuteDeleteCmdApplicationConfigurationCommandWithNullThrowsException( CmdApplicationConfigurationService sut, TestDomainEventHandler<ConfigurationDeletedEvent> deleteHandler, DeleteCmdApplicationConfigurationCommand command) { DomainEvents.Subscribe(deleteHandler); sut.Execute(command); Assert.True(deleteHandler.EventHandlerInvoked); }