Exemple #1
0
        public void ExecuteDeleteCmdApplicationConfigurationCommandWithNullThrowsException(
            CmdApplicationConfigurationService sut)
        {
            DeleteCmdApplicationConfigurationCommand NullCommand = null;

            Assert.Throws <ArgumentNullException>(() => sut.Execute(NullCommand));
        }
Exemple #2
0
 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);

        }