public void Save(FormaPg FormaPg) { try { dbFormaPg.Add(FormaPg); } catch (Exception ex) { throw new Exception($"Erro ao salvar FormaPg: {ex.Message}."); } }
public void Update(FormaPg FormaPg) { try { dbFormaPg.Update(FormaPg); } catch (Exception ex) { throw new Exception($"Erro ao atualizar os dados do FormaPg: {ex.Message}."); } }
public void AddUser() { var formaPgs = _FormaPgRepository.GetAll(); FormaPg formaPg = new FormaPg { ID_PEDIDO = 2, ID_TIPO_PG = 1, VALOR_FORM_PG = 1 }; _FormaPgRepository.Add(formaPg); var tipoPgsdepopis = _FormaPgRepository.GetAll(); Assert.IsTrue(formaPgs.Count() < tipoPgsdepopis.Count()); }