Skip to content

Instantly share code, notes, and snippets.

@jcbozonier
Created October 8, 2009 19:48
Show Gist options
  • Select an option

  • Save jcbozonier/205304 to your computer and use it in GitHub Desktop.

Select an option

Save jcbozonier/205304 to your computer and use it in GitHub Desktop.
var attageTableProperties = new TableProperties(
"name",
"description",
Indices.AttainedAge,
DataType.Real,
"comments",
4,
4,
"group heading",
"ult table name",
25,
new double[0],
new double[0]);
var attageTable = MockRepository.GenerateMock<ITableItem>();
attageTable.Expect(x => x.Properties).Return(attageTableProperties);
attageTable.Expect(x => x.LayerCount).Return(1);
var otherIndexProperties = new TableProperties(
"name",
"description",
Indices.SelectMortality,
DataType.Real,
"comments",
4,
4,
"group heading",
"ult table name",
25,
new double[0],
new double[0]);
var otherIndexTable = MockRepository.GenerateMock<ITableItem>();
otherIndexTable.Expect(x => x.Properties).Return(otherIndexProperties);
otherIndexTable.Expect(x => x.LayerCount).Return(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment