コード例 #1
0
        public void WhenDeleteCommandCalled_With_NegativeIssueId_ShouldRequireValidId()
        {
            var command = new DeleteIssueTicketCommand {
                Id = -1
            };

            FluentActions.Invoking(() =>
                                   SendAsync(command)).Should().Throw <IndexOutOfRangeException>();
        }
コード例 #2
0
        public void WhenDeleteIssueCommand_Called_ShouldRequireValidIssueId()
        {
            var command = new DeleteIssueTicketCommand {
                Id = 99
            };

            FluentActions.Invoking(() =>
                                   SendAsync(command)).Should().Throw <NotFoundException>();
        }