private void _view_LoadData(object sender, EventArgs e) { using (new WaitCursorHandler()) { if (_view.ListDataGrid != null) { _listObjs = _services.GetAll().ToList(); _bindingView = new BindingListView <SatuanModel>(_listObjs); _view.ListDataGrid.DataSource = _bindingView; } } }
public void ShouldReturnListOfModels() { var listModels = _services.GetAll().ToList(); Assert.NotEmpty(listModels); TestsHelper.WriteListModels(_testOutputHelper, listModels); }