Example #1
0
 public void InitializeTest()
 {
     MockContext = MockRepository.GenerateMock <IEducationContext>();
     MockDbSet   = MockRepository.GenerateMock <IDbSet <CustomFieldValue> >();
     MockContext.Expect(m => m.CustomFieldValues).Return(MockDbSet);
     Target = new CustomFieldValueRepository(MockContext);
 }
 public void InitializeTest()
 {
     MockContext = MockRepository.GenerateMock<IEducationContext>();
     MockDbSet = MockRepository.GenerateMock<IDbSet<CustomFieldValue>>();
     MockContext.Expect(m => m.CustomFieldValues).Return(MockDbSet);
     Target = new CustomFieldValueRepository(MockContext);
 }