Exemple #1
0
        public void SubDomainModel_FindEntities_NullExpression_ExceptionIsThrown()
        {
            ISubDomainModel <TestDummy> testSubject = MockRepository.GeneratePartialMock <SubDomainModel <TestDummy> >();

            IList <TestDummy> result = testSubject.FindEntities((Expression <Func <TestDummy, bool> >)null);
        }
Exemple #2
0
        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" });
        }
Exemple #3
0
        public void SubDomainModel_FindEntities_NullSpecification_ExceptionIsThrown()
        {
            ISubDomainModel <TestDummy> testSubject = MockRepository.GeneratePartialMock <SubDomainModel <TestDummy> >();

            IList <TestDummy> result = testSubject.FindEntities((ISpecification <TestDummy>)null);
        }
Exemple #4
0
        public void SubDomainModel_FindEntities_EmptyIncludePaths_ExceptionIsThrown()
        {
            ISubDomainModel <TestDummy> testSubject = MockRepository.GeneratePartialMock <SubDomainModel <TestDummy> >();

            IList <TestDummy> result = testSubject.FindEntities(new string[0]);
        }