Example #1
0
        private void ConsultarButton_Click(object sender, RoutedEventArgs e)
        {
            var listado = new List <Moras>();

            if (CriterioTextBox.Text.Trim().Length > 0)
            {
                switch (FiltroComboBox.SelectedIndex)
                {
                case 0:
                    listado = MorasBLL.GetList(e => e.MoraId == int.Parse(CriterioTextBox.Text));
                    break;

                case 1:
                    listado = MorasBLL.GetList(e => e.Fecha == DateTime.Parse(CriterioTextBox.Text));
                    break;

                case 2:
                    listado = MorasBLL.GetList(e => e.Total == float.Parse(CriterioTextBox.Text));
                    break;
                }
            }
            else
            {
                listado = MorasBLL.GetList(c => true);
            }

            DatosDataGrid.ItemsSource = null;
            DatosDataGrid.ItemsSource = listado;
        }
Example #2
0
        public void GetListTest()
        {
            var lista = new List <Moras>();

            lista = MorasBLL.GetList(p => true);
            Assert.IsNotNull(lista);
        }
Example #3
0
        public void GetListTest1()
        {
            List <Moras> lista = new List <Moras>();

            lista = MorasBLL.GetList();
            Assert.IsNotNull(lista);
        }
        public void GetListTest()
        {
            bool paso;
            var  lista = MorasBLL.GetList(x => true);

            if (lista != null)
            {
                paso = true;
            }
            else
            {
                paso = false;
            }

            Assert.AreEqual(paso, true);
        }
        public void GetListTest()
        {
            List <Moras> listadoMoras = MorasBLL.GetList(m => true);

            Assert.IsTrue(listadoMoras != null);
        }