public void InitializeTest() { MockContext = MockRepository.GenerateMock<IEducationContext>(); MockDbSet = MockRepository.GenerateMock<IDbSet<EulaAgreement>>(); MockContext.Expect(m => m.EulaAgreements).Return(MockDbSet); Target = new EulaAgreementRepository(MockContext); }