private void LoadStandings(int iDiv) { if (panelStandings.Visible) { var vm = new ScheduleStandingsViewModel(); var standings = vm.GetStandings(iDiv); grdStandings.DataSource = standings; //grdStandings.DataValueField = "DivisionID"; //grdStandings.DataTextField = "Div_Desc"; grdStandings.DataBind(); } }
public void GetStandingsTest() { var vm = new ScheduleStandingsViewModel(); var standings = vm.GetStandings(757); Assert.IsTrue(standings.Any<Csbchoops.Web.ViewModels.ScheduleStandingsViewModel>()); }