public void setUp() { _iDataContext = MockRepository.GenerateStub<IDataContext>(); _iDataContext.Stub(x => x.Repository<Request>()) .Return(Samples.getSampleRequests()); _iDataContext.Stub(x => x.Repository<QuestionResponse>()) .Return(Samples.getSampleQs()); _iDataContext.Stub(x => x.Repository<Region>()) .Return(Samples.getSampleRegions()); _iDataContext.Stub(x => x.Repository<TumourGroup>()) .Return(Samples.getSampleTumourGroups()); _iDataContext.Stub(x => x.Repository<RequestorType>()) .Return(Samples.getSampleCallerTypes()); _dataTypes = new List<Constants.DataType> { Constants.DataType.AvgTimePerRequest, Constants.DataType.AvgTimeToComplete, Constants.DataType.TotalNumOfRequests, Constants.DataType.TotalTimeSpent }; }