public void Handle_WhenLastNameIsEmpty_ShouldThrowException()
        {
            var commandHandler = GetCommandHandlers();
            var command        = new AddDebtorCommand()
            {
                FirstName   = "First Name",
                DateOfBirth = DateTime.Now.AddYears(-18)
            };

            Assert.ThrowsException <ArgumentException>(() => commandHandler.Handle(command, CancellationToken.None))
            .ParamName.Should().Be(nameof(AddDebtorCommand.LastName));
        }
        public void Handle_WhenAllDataValid_ShouldAddNewDebtor()
        {
            var commandHandler = GetCommandHandlers();
            var command        = new AddDebtorCommand()
            {
                FirstName   = "First Name",
                LastName    = "Last Name",
                DateOfBirth = DateTime.Now.AddYears(-18)
            };
            var id = commandHandler.Handle(command, CancellationToken.None).Result;

            Assert.IsFalse(id == Guid.Empty);
        }