private bool FetchTypedView(ITypedView2 viewToFill, IRelationPredicateBucket bucket, bool allowDuplicates)
 {
     if (_typedViewToReturn != null)
     {
         for (var i = 0; i < _typedViewToReturn.Count; i++)
         {
             ((DataTable)viewToFill).Rows.Add();
         }
     }
     return(true);
 }
 protected void ExpectFetchTypedView(ITypedView2 entityViewToReturn)
 {
     _typedViewToReturn = entityViewToReturn;
     Expect.Call(() => _dataAccessAdapter.FetchTypedView(null, (IRelationPredicateBucket)null, true)).IgnoreArguments()
     .Callback(new FetchTypedViewDelegate(FetchTypedView));
 }