public CreateStudentModelValidatorTests()
 {
     var repoReader = Substitute.For<IRepositoryReader<Web.Data.Entities.Student>>();
     repoReader.DoesRepositoryReturnNullFor(Arg.Any<int?>(),
         Arg.Any<Expression<Func<Web.Data.Entities.Student, bool>>>()).Returns(false);
     _validator = new CreateStudentModelValidator(repoReader);
 }
Exemplo n.º 2
0
        public CreateStudentModelValidatorTests()
        {
            var repoReader = Substitute.For <IRepositoryReader <Web.Data.Entities.Student> >();

            repoReader.DoesRepositoryReturnNullFor(Arg.Any <int?>(),
                                                   Arg.Any <Expression <Func <Web.Data.Entities.Student, bool> > >()).Returns(false);
            _validator = new CreateStudentModelValidator(repoReader);
        }