Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TimeRecordCommandService"/> class.
        /// </summary>
        /// <param name="timeRecordRepository">The project storage.</param>
        /// <exception cref="System.ArgumentNullException">When projectStorage is null.</exception>
        public TimeRecordCommandService(ITimeRecordRepository timeRecordRepository)
        {
            if (timeRecordRepository == null)
            {
                throw new ArgumentNullException("timeRecordRepository");
            }

            this.timeRecordRepository = timeRecordRepository;
        }
Exemplo n.º 2
0
        public TimeRecordService(
            ITimeRecordRepository repository,
            IUserRepository userRepository,
            IProjectRepository projectRepository,
            ILogTimeRecordRepository logTimeRecordRepository)
            : base(repository)

        {
            _userRepository          = userRepository;
            _projectRepository       = projectRepository;
            _logTimeRecordRepository = logTimeRecordRepository;
        }
 public TimeRecordBusiness(ITimeRecordRepository timeRecordRepository)
 {
     _timeRecordRepository = timeRecordRepository;
 }
Exemplo n.º 4
0
 public TimeRecordService(ITimeRecordRepository timeRecordRepository)
 {
     _timeRecordRepository = timeRecordRepository;
 }