public MockWorkbook()
{
// worksheet indices; watch out! the second index here is the NUMBER of elements, NOT the max value!
var e = Enumerable.Range(1, 10);
// new Excel instance
app = new Excel.Application();
// create new workbook
wb = app.Workbooks.Add();
// get a reference to the worksheet array
// By default, workbooks have three blank worksheets.
ws = wb.Worksheets;
// add some worksheets
foreach (int i in e)
{
ws.Add(Missing.Value, Missing.Value, Missing.Value, Missing.Value);
}
}