public DatasetGuard(IUnitOfWork unitOfWork) { _categoryValidator = unitOfWork.CategoryValidator; _datasetValidator = unitOfWork.DatasetValidator; _seriesValidator = unitOfWork.SeriesValidator; _seriesGroupValidator = unitOfWork.SeriesGroupValidator; _userValidator = unitOfWork.UserValidator; }
public CategoryService( IUOW UOW, ICategoryValidator CategoryValidator ) { this.UOW = UOW; this.CategoryValidator = CategoryValidator; }
public CategoryService(IUnitOfWork unitOfWork, IUserService userService, IMapper mapper) : base(unitOfWork, userService) { _repository = unitOfWork.CategoryRepository; _validator = unitOfWork.CategoryValidator; _mapper = mapper; }
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); }
public NoteValidator(INoteRepository noteRepository, ICategoryValidator categoryValidator) { this.noteRepository = noteRepository; this.categoryValidator = categoryValidator; }
public CourseValidator(ICategoryValidator categoryValidator, ICourseDateValidator courseDateValidator) { _categoryValidator = categoryValidator; _courseDateValidator = courseDateValidator; }
public CategoryService(ICategoryRepository categoryRepository, ICategoryValidator categoryValidator) { this.categoryRepository = categoryRepository; this.categoryValidator = categoryValidator; }
public CategoryService(IUnitOfWork UnitOfWork, ICategoryValidator CategoryValidator) : base(UnitOfWork) { this.CategoryValidator = CategoryValidator; }