public void TestarAtualizarEndereco() { Endereco test = new Endereco(1, logradouro, 123, "123"); str = bll.Update(test); Assert.AreEqual(str, "Endereço atualizado com êxito!"); }
public bool Put(int id, [FromBody] Endereco i) { try { _EnderecoBLL = new EnderecoBLL(); return(_EnderecoBLL.Update(i)); } catch (Exception ex) { throw ex; } }