Ejemplo n.º 1
0
        private void LoadDataSource()
        {
            var services  = new TipeServices(new TipeRepository(), new ModelDataAnnotationCheck());
            var listTipes = services.GetAll().ToList();

            if (listTipes != null && listTipes.Count > 0)
            {
                comboBox.Items.AddRange(listTipes.ToArray());
                comboBox.DisplayMember = "nama";
                comboBox.SelectedIndex = 0;
            }
        }
Ejemplo n.º 2
0
 public TipeServicesFixture()
 {
     Model    = new TipeModel();
     Services = new TipeServices(null, new ModelDataAnnotationCheck());
 }