Example #1
0
 public DatasetGuard(IUnitOfWork unitOfWork)
 {
     _categoryValidator    = unitOfWork.CategoryValidator;
     _datasetValidator     = unitOfWork.DatasetValidator;
     _seriesValidator      = unitOfWork.SeriesValidator;
     _seriesGroupValidator = unitOfWork.SeriesGroupValidator;
     _userValidator        = unitOfWork.UserValidator;
 }
Example #2
0
 public CategoryService(
     IUOW UOW,
     ICategoryValidator CategoryValidator
     )
 {
     this.UOW = UOW;
     this.CategoryValidator = CategoryValidator;
 }
Example #3
0
        public CategoryService(IUnitOfWork unitOfWork, IUserService userService, IMapper mapper)
            : base(unitOfWork, userService)
        {
            _repository = unitOfWork.CategoryRepository;
            _validator  = unitOfWork.CategoryValidator;

            _mapper = mapper;
        }
Example #4
0
 public CategoryService(
     IUOW UOW,
     ILogging Logging,
     ICurrentContext CurrentContext,
     ICategoryValidator CategoryValidator
     )
 {
     this.UOW               = UOW;
     this.Logging           = Logging;
     this.CurrentContext    = CurrentContext;
     this.CategoryValidator = CategoryValidator;
 }
 public CommandValidator(ICategoryValidator validator)
 {
     RuleFor(c => c.Name).MustAsync(validator.CategoryDoesntExistAsync)
     .WithMessage(ErrorMessages.CATEGORY_NAME_ALREADY_TAKEN);
 }
Example #6
0
 public NoteValidator(INoteRepository noteRepository, ICategoryValidator categoryValidator)
 {
     this.noteRepository    = noteRepository;
     this.categoryValidator = categoryValidator;
 }
Example #7
0
 public CourseValidator(ICategoryValidator categoryValidator,
                        ICourseDateValidator courseDateValidator)
 {
     _categoryValidator   = categoryValidator;
     _courseDateValidator = courseDateValidator;
 }
Example #8
0
 public CategoryService(ICategoryRepository categoryRepository, ICategoryValidator categoryValidator)
 {
     this.categoryRepository = categoryRepository;
     this.categoryValidator  = categoryValidator;
 }
Example #9
0
 public CategoryService(IUnitOfWork UnitOfWork, ICategoryValidator CategoryValidator) : base(UnitOfWork)
 {
     this.CategoryValidator = CategoryValidator;
 }