public void BuscarTest() { Cobros cobro = new Cobros(); bool paso = false; cobro = CobrosBLL.Buscar(1); if (cobro != null) { paso = true; } Assert.AreEqual(paso, true); }
private void BuscarButton_Click(object sender, RoutedEventArgs e) { Cobros cobroAnterior = CobrosBLL.Buscar(CobrosIdTextBox.Text.ToInt()); if (cobroAnterior != null) { cobro = cobroAnterior; reCargar(); } else { MessageBox.Show(" No Encontrado !!!", "Informacion", MessageBoxButton.OK, MessageBoxImage.Error); } }
public void BuscarTest() { bool paso = false; Cobros cobros; cobros = CobrosBLL.Buscar(3); if (cobros != null) { paso = true; } Assert.AreEqual(paso, false); }
private void ClienteIdComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (DetalleDataGridCobro != null) { if (ClienteIdComboBox.Text == "0") { cobro = new Cobros(); reCargar(); } else { cobro = CobrosBLL.Buscar(Convert.ToInt32(ClienteIdComboBox.Text)); reCargar(); } } }
private bool existeEnLaBaseDeDatos() { Cobros cobroAnterior = CobrosBLL.Buscar((int)CobrosIdTextBox.Text.ToInt()); return(cobroAnterior != null); }