public void InitializeTest() { MockContext = MockRepository.GenerateMock <IEducationContext>(); MockDbSet = MockRepository.GenerateMock <IDbSet <FulfillmentStatus> >(); MockContext.Expect(m => m.FulfillmentStatuses).Return(MockDbSet); Target = new FulfillmentStatusRepository(MockContext); }
public void InitializeTest() { MockContext = MockRepository.GenerateMock<IEducationContext>(); MockDbSet = MockRepository.GenerateMock<IDbSet<FulfillmentStatus>>(); MockContext.Expect(m => m.FulfillmentStatuses).Return(MockDbSet); Target = new FulfillmentStatusRepository(MockContext); }