コード例 #1
0
        public void ExecuteDeleteCmdApplicationConfigurationCommandWithNullThrowsException(
            CmdApplicationConfigurationService sut)
        {
            DeleteCmdApplicationConfigurationCommand NullCommand = null;

            Assert.Throws <ArgumentNullException>(() => sut.Execute(NullCommand));
        }
コード例 #2
0
 public void ExecuteDeleteCmdApplicationConfigurationCommandWithNullThrowsException(
     CmdApplicationConfigurationService sut,
     TestDomainEventHandler <ConfigurationDeletedEvent> deleteHandler,
     DeleteCmdApplicationConfigurationCommand command)
 {
     DomainEvents.Subscribe(deleteHandler);
     sut.Execute(command);
     Assert.True(deleteHandler.EventHandlerInvoked);
 }
コード例 #3
0
        public void ExecuteDeleteCmdApplicationConfigurationCommandWithNullThrowsException(
            CmdApplicationConfigurationService sut,
            TestDomainEventHandler<ConfigurationDeletedEvent> deleteHandler,
            DeleteCmdApplicationConfigurationCommand command)
        {
            DomainEvents.Subscribe(deleteHandler);
            sut.Execute(command);
            Assert.True(deleteHandler.EventHandlerInvoked);

        }