public TimetableService(ITimetableRepository timetableRepository, 
			ITimetableViewModelRepository timetableViewModelRepository)
		{
			if (timetableRepository == null) throw new ArgumentNullException("TimetableRepository");
			if (timetableViewModelRepository == null) throw new ArgumentNullException("TimetableViewModelRepository");
			_timetableRepository = timetableRepository;
			_timetableViewModelRepository = timetableViewModelRepository;
		}
Example #2
0
 public TimetableService(ITimetableRepository timetableRepository, ITimetableViewModelRepository timetableViewModelRepository)
 {
     if (timetableRepository == null)
     {
         throw new ArgumentNullException("timetableRepository");
     }
     if (timetableViewModelRepository == null)
     {
         throw new ArgumentNullException("timetableViewModelRepository");
     }
     _timetableRepository          = timetableRepository;
     _timetableViewModelRepository = timetableViewModelRepository;
 }