예제 #1
0
        public void BuscarTest()
        {
            Cobros cobro = new Cobros();
            bool   paso  = false;

            cobro = CobrosBLL.Buscar(1);

            if (cobro != null)
            {
                paso = true;
            }

            Assert.AreEqual(paso, true);
        }
예제 #2
0
        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);
        }
예제 #4
0
 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();
         }
     }
 }
예제 #5
0
        private bool existeEnLaBaseDeDatos()
        {
            Cobros cobroAnterior = CobrosBLL.Buscar((int)CobrosIdTextBox.Text.ToInt());

            return(cobroAnterior != null);
        }