Пример #1
0
 public StudentService(IUOW UOW, IStudentValidator StudentValidator, ICurrentContext CurrentContext, IMailService MailService)
 {
     this.UOW = UOW;
     this.StudentValidator = StudentValidator;
     this.CurrentContext   = CurrentContext;
     this.MailService      = MailService;
 }
Пример #2
0
 public StudentService(IUOW UOW, IStudentValidator StudentValidator, ICurrentContext CurrentContext)
 {
     this.UOW = UOW;
     this.StudentValidator = StudentValidator;
     this.CurrentContext   = CurrentContext;
 }
 public StudentRegistrationSerivce(IStudentRepository repository,
  IStudentValidator studentValidator)
 {
     _repository = repository;
      _studentValidator = studentValidator;
 }
Пример #4
0
 public StudentsController(IUnitOfWork data, IStudentValidator validator) : base(data)
 {
     this._validator = validator;
 }
 public StudentRegistrationService(IStudentRepository studentRepository, IStudentValidator studentValidator)
 {
     this.studentRepository = studentRepository;
     this.studentValidator  = studentValidator;
 }
Пример #6
0
 public StudentService(IUOW UOW, IStudentValidator StudentValidator)
 {
     this.UOW = UOW;
     this.StudentValidator = StudentValidator;
 }
 public StudentsController(IStudentService studentService, ILogger <StudentsController> logger, IStudentValidator studentValidator)
 {
     _studentService   = studentService;
     _logger           = logger;
     _studentValidator = studentValidator;
 }
        public void Setup()
        {
            _repository = MockRepository.GenerateMock<IStudentRepository>();
             _studentValidator = MockRepository.GenerateMock<IStudentValidator>();
             _studentValidator.Stub(d => d.Validate(Arg<Student>.Is.NotNull))
            .Return(true);

             _studentService = new StudentRegistrationSerivce(_repository, _studentValidator);
        }