public void InitializeTest() { MockContext = MockRepository.GenerateMock<IEducationContext>(); MockDbSet = MockRepository.GenerateMock<IDbSet<PrivateHealthDataViewEvent>>(); MockContext.Expect(m => m.PrivateHealthDataViewEvents).Return(MockDbSet); Target = new PrivateHealthDataViewEventRepository(MockContext); }
public void InitializeTest() { MockContext = MockRepository.GenerateMock <IEducationContext>(); MockDbSet = MockRepository.GenerateMock <IDbSet <PrivateHealthDataViewEvent> >(); MockContext.Expect(m => m.PrivateHealthDataViewEvents).Return(MockDbSet); Target = new PrivateHealthDataViewEventRepository(MockContext); }