Esempio n. 1
0
        //private GenericRepository<CourseDay> _courseDayRepository;


        public CourseDayService(/*ICourseDayRepo courseDayRepo,*/ IEntityToDtoMapper entityToDtoMapper, ICourseDayRepoService courseDayRepoService)
        {
            //_courseDayRepo = courseDayRepo;
            _entityToDtoMapper    = entityToDtoMapper;
            _courseDayRepoService = courseDayRepoService;

            //_courseDayRepository = RegisterArchLayerUoW.GetInstance().GetRepository<CourseDay>();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetRadioStationsDirector"/> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="mapper">The mapper.</param>
 public GetRadioStationsDirector(IRadioStationsRepository repository, IEntityToDtoMapper <Entities.RadioStation, Dto.RadioStation> mapper)
 {
     this.repository = repository;
     this.mapper     = mapper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCountriesDirector"/> class.
 /// </summary>
 /// <param name="countriesRepository">The countries repository.</param>
 /// <param name="mapper">The country mapper.</param>
 public GetCountriesDirector(ICountriesRepository countriesRepository, IEntityToDtoMapper <Entities.Country, Dto.Country> mapper)
 {
     this.countriesRepository = countriesRepository;
     this.mapper = mapper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCountriesDirector"/> class.
 /// </summary>
 /// <param name="countriesRepository">The countries repository.</param>
 /// <param name="mapper">The country mapper.</param>
 public GetCountriesDirector(ICountriesRepository countriesRepository, IEntityToDtoMapper<Entities.Country, Dto.Country> mapper)
 {
     this.countriesRepository = countriesRepository;
     this.mapper = mapper;
 }
Esempio n. 5
0
 public CourseService()
 {
     _courseRepoService = new CourseRepoService();
     _entityToDtoMapper = new EntityToDtoMapper();
     _studentRepository = RegisterArchLayerUoW.GetInstance().GetRepository <Student>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetRadioStationsDirector"/> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="mapper">The mapper.</param>
 public GetRadioStationsDirector(IRadioStationsRepository repository, IEntityToDtoMapper<Entities.RadioStation, Dto.RadioStation> mapper)
 {
     this.repository = repository;
     this.mapper = mapper;
 }
Esempio n. 7
0
 public HomeworkService(/*IHomeworkRepo homeworkRepo,*/ IEntityToDtoMapper entityToDtoMapper, IHomeworkRepoService homeworkRepoService)
 {
     //_homeworkRepo = homeworkRepo;
     _entityToDtoMapper   = entityToDtoMapper;
     _homeworkRepoService = homeworkRepoService;
 }
Esempio n. 8
0
 public HomeworkService()
 {
     //_homeworkRepo = new HomeworkRepo();
     _entityToDtoMapper   = new EntityToDtoMapper();
     _homeworkRepoService = new HomeworkRepoService();
 }