public void InitializeTest()
 {
     MockContext = MockRepository.GenerateMock<IEducationContext>();
     MockDbSet = MockRepository.GenerateMock<IDbSet<EulaAgreement>>();
     MockContext.Expect(m => m.EulaAgreements).Return(MockDbSet);
     Target = new EulaAgreementRepository(MockContext);
 }
コード例 #2
0
 public void InitializeTest()
 {
     MockContext = MockRepository.GenerateMock<IEducationContext>();
     MockDbSet = MockRepository.GenerateMock<IDbSet<EulaAgreement>>();
     MockContext.Expect(m => m.EulaAgreements).Return(MockDbSet);
     Target = new EulaAgreementRepository(MockContext);
 }