コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
 public StreamService(IUnitOfWork unitOfWork, Contracts.IValidatorFactory validatorFactory)
 {
     _unitOfWork       = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _validatorFactory = validatorFactory ?? throw new ArgumentNullException(nameof(validatorFactory));
 }