コード例 #1
0
        public void EmprestimoRepositorio_Editar_NomeCliente_Invalido_ShouldBeFail()
        {
            Emprestimo emprestimo = ObjectMotherEmprestimo.GetEmprestimoInvalidoClienteNome();

            emprestimo.Id          = 1;
            emprestimo.Livro       = _livro;
            _livro.Disponibilidade = true;
            Action executeAction = () => _service.Editar(emprestimo);

            executeAction.Should().Throw <ExcecaoNomeClienteNulo>();
        }