예제 #1
0
        protected override void EstablishContext()
        {
            studentIndicatorRepository = mocks.StrictMock<IRepository<StudentIndicator>>();
            Expect.Call(studentIndicatorRepository.GetAll()).Return(new List<StudentIndicator>().AsQueryable()).Repeat.Any();

            query = new List<EnhancedStudentInformation>
            {
                new EnhancedStudentInformation { StudentUSI = 1, Gender = "male"},
                new EnhancedStudentInformation { StudentUSI = 2, Gender = "female"}
            }.AsQueryable();

            filter = new DemographicsFilter(studentIndicatorRepository);

            base.EstablishContext();
        }
예제 #2
0
        protected override void EstablishContext()
        {
            studentIndicatorRepository = mocks.StrictMock<IRepository<StudentIndicator>>();
            Expect.Call(studentIndicatorRepository.GetAll()).Return(new List<StudentIndicator>().AsQueryable()).Repeat.Any();

            query = new List<EnhancedStudentInformation>
            {
                new EnhancedStudentInformation { StudentUSI = 1, Race = "Asian, White"},
                new EnhancedStudentInformation { StudentUSI = 2, Race = "White"},
                new EnhancedStudentInformation { StudentUSI = 3, Race = "Asian, White", HispanicLatinoEthnicity = "YES"}
            }.AsQueryable();

            filter = new DemographicsFilter(studentIndicatorRepository);

            base.EstablishContext();
        }