/// <summary> /// Default constructor. /// </summary> /// <param name="repositoryFactory">Handles data base operations.</param> /// <param name="validatorFactory">Validate models.</param> /// <param name="mapper">Map objects.</param> public DeleteScheduleCommand(IRepositoryFactory repositoryFactory, Contracts.IValidatorFactory validatorFactory, IMapper mapper) { _repositoryFactory = repositoryFactory; _validatorFactory = validatorFactory; _mapper = mapper; }
/// <summary> /// Default constructor. /// </summary> /// <param name="repositoryFactory">Handles data base operations.</param> /// <param name="validatorFactory">Validate models.</param> /// <param name="mapper">Map objects.</param> public UpdateTemplateCommand(IRepositoryFactory repositoryFactory, Contracts.IValidatorFactory validatorFactory, IMapper mapper) { _repositoryFactory = repositoryFactory; _validatorFactory = validatorFactory; _mapper = mapper; }
/// <summary> /// Default constructor. /// </summary> /// <param name="repositoryFactory">Handles data base operations.</param> /// <param name="validatorFactory">Validate models.</param> /// <param name="mapper">Map objects.</param> public TrackWorkTimeCommand(IRepositoryFactory repositoryFactory, Contracts.IValidatorFactory validatorFactory, IMapper mapper) { _repositoryFactory = repositoryFactory; _validatorFactory = validatorFactory; _mapper = mapper; }
public StreamService(IUnitOfWork unitOfWork, Contracts.IValidatorFactory validatorFactory) { _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _validatorFactory = validatorFactory ?? throw new ArgumentNullException(nameof(validatorFactory)); }