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); }
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); }