public void SubDomainModel_FindEntities_NullExpression_ExceptionIsThrown() { ISubDomainModel <TestDummy> testSubject = MockRepository.GeneratePartialMock <SubDomainModel <TestDummy> >(); IList <TestDummy> result = testSubject.FindEntities((Expression <Func <TestDummy, bool> >)null); }
public void SubDomainModel_FindEntities_InvalidIncludePaths_ExceptionIsThrown() { ISubDomainModel <TestDummy> testSubject = MockRepository.GeneratePartialMock <SubDomainModel <TestDummy> >(); IList <TestDummy> result = testSubject.FindEntities(new string[] { string.Empty, "PropA.PropB", "dummy" }); }
public void SubDomainModel_FindEntities_NullSpecification_ExceptionIsThrown() { ISubDomainModel <TestDummy> testSubject = MockRepository.GeneratePartialMock <SubDomainModel <TestDummy> >(); IList <TestDummy> result = testSubject.FindEntities((ISpecification <TestDummy>)null); }
public void SubDomainModel_FindEntities_EmptyIncludePaths_ExceptionIsThrown() { ISubDomainModel <TestDummy> testSubject = MockRepository.GeneratePartialMock <SubDomainModel <TestDummy> >(); IList <TestDummy> result = testSubject.FindEntities(new string[0]); }