Example #1
0
        public void MigrationDayServiceFactory_Sample()
        {
            ScheduleHandler sh = new ScheduleHandler("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\\data\\ScheduleDB.mdb;");

            ScheduleDBDataSet.MineinikRow row = sh.DataSet.Mineinik.FirstOrDefault();

            MigrationDayWorshipFactory factory = new MigrationDayWorshipFactory(Properties.Settings.Default.FolderPath);

            factory.Initialize(row);

            DayWorship dayService = factory.Create();

            Assert.IsNotEmpty(dayService.Definition);
        }
Example #2
0
 public void Initialize(ScheduleDBDataSet.MineinikRow mineinikRow)
 {
     _row = mineinikRow ?? throw new ArgumentNullException("ScheduleDBDataSet.MineinikRow");
 }