Esempio n. 1
0
 public DishRepository(IDishTypeRepository dishTypeRepository, ITimeOfDayRepository timeOfDayRepository)
 {
     TimeOfDay            = new TimeOfDayRepository();
     DishType             = new DishTypeRepository();
     _dishTypeRepository  = dishTypeRepository;
     _timeOfDayRepository = timeOfDayRepository;
 }
Esempio n. 2
0
        public Repository(
            IDishRepository dishRepository,
            ITimeOfDayRepository timeOfDayRepository,
            IDishTypeRepository dishTypeRepository)
        {
            _dishRepository = dishRepository;

            _timeOfDayRepository = timeOfDayRepository;
            _dishTypeRepository  = dishTypeRepository;
        }