public void InitializeTest()
 {
     MockContext = MockRepository.GenerateMock<IEducationContext>();
     MockDbSet = MockRepository.GenerateMock<IDbSet<EulaAcceptance>>();
     MockContext.Expect(m => m.EulaAcceptances).Return(MockDbSet);
     Target = new EulaAcceptanceRepository(MockContext);
 }
Beispiel #2
0
 public void InitializeTest()
 {
     MockContext = MockRepository.GenerateMock <IEducationContext>();
     MockDbSet   = MockRepository.GenerateMock <IDbSet <EulaAcceptance> >();
     MockContext.Expect(m => m.EulaAcceptances).Return(MockDbSet);
     Target = new EulaAcceptanceRepository(MockContext);
 }