Exemple #1
0
        public void should_throw_exception_when_peron_does_not_exist()
        {
            var command = new UpdateJudiciaryPersonByExternalRefIdCommand(Guid.NewGuid(), "123", "Mr", "Steve", "Allen", "Steve Allen", "nom1", "*****@*****.**", false);

            Assert.ThrowsAsync <JudiciaryPersonNotFoundException>(() => _commandHandler.Handle(command));
        }
Exemple #2
0
        public void should_throw_exception_when_peron_does_not_exist()
        {
            var command = new UpdateJudiciaryPersonByExternalRefIdCommand(Guid.NewGuid(), false);

            Assert.ThrowsAsync <JudiciaryPersonNotFoundException>(() => _commandHandler.Handle(command));
        }