public StudentService(IUOW UOW, IStudentValidator StudentValidator, ICurrentContext CurrentContext, IMailService MailService) { this.UOW = UOW; this.StudentValidator = StudentValidator; this.CurrentContext = CurrentContext; this.MailService = MailService; }
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; }
public StudentsController(IUnitOfWork data, IStudentValidator validator) : base(data) { this._validator = validator; }
public StudentRegistrationService(IStudentRepository studentRepository, IStudentValidator studentValidator) { this.studentRepository = studentRepository; this.studentValidator = studentValidator; }
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); }