Exemplo n.º 1
0
        //TODO: Get rid of all the magic strings in this class
        public TaskItemRepository(string connStr, INotificationFrequencyRepositoryFactory notificationFrequencyRepositoryFactory)
        {
            adapter = NewTaskItemAdapter(connStr);

            table = new DataTable("Tasks");
            adapter.FillSchema(table, SchemaType.Source);
            adapter.Fill(table);

            notificationFrequencyRepository = notificationFrequencyRepositoryFactory.New();
        }
 public SettingsService(
     ITheaterScheduleUnitOfWork theaterScheduleUnitOfWork,
     INotificationFrequencyRepository notificationFrequencyRepository,
     ISettingsRepository settingsRepository,
     IAccountRepository accountRepository,
     ILanguageRepository languageRepository)
 {
     this.theaterScheduleUnitOfWork       = theaterScheduleUnitOfWork;
     this.notificationFrequencyRepository = notificationFrequencyRepository;
     this.settingsRepository = settingsRepository;
     this.accountRepository  = accountRepository;
     this.languageRepository = languageRepository;
 }