Пример #1
0
 public void InitializeTest()
 {
     MockContext = MockRepository.GenerateMock <IEducationContext>();
     MockDbSet   = MockRepository.GenerateMock <IDbSet <CustomField> >();
     MockContext.Expect(m => m.CustomFields).Return(MockDbSet);
     Target = new CustomFieldRepository(MockContext);
 }
 public void InitializeTest()
 {
     MockContext = MockRepository.GenerateMock<IEducationContext>();
     MockDbSet = MockRepository.GenerateMock<IDbSet<CustomField>>();
     MockContext.Expect(m => m.CustomFields).Return(MockDbSet);
     Target = new CustomFieldRepository(MockContext);
 }
 public void InitializeTest()
 {
     Context = new EducationDataContext();
     Target = new CustomFieldRepository(Context);
 }
 public void InitializeTest()
 {
     Context = new EducationDataContext();
     Target  = new CustomFieldRepository(Context);
 }