public void FormLookupData_Columns() { Object actual = lookup.FormLookupData(lookup.GetModels(), new[] { new TestModel() }.AsQueryable(), lookup.GetModels()).Columns; Object expected = lookup.Columns; Assert.Same(expected, actual); }
public void FormLookupData_FilteredRows() { Int32 actual = lookup.FormLookupData(lookup.GetModels()).FilteredRows; Int32 expected = lookup.GetModels().Count(); Assert.Equal(expected, actual); }
public void FormLookupData_FilteredRows() { lookup.Filter.TotalRows = 140; Int32 actual = lookup.FormLookupData(lookup.GetModels(), new[] { new TestModel() }.AsQueryable(), lookup.GetModels().Take(1)).FilteredRows; Int32 expected = lookup.Filter.TotalRows; Assert.Equal(expected, actual); }