public void testMigrationOfEvents() { DataMigrator<AWGEventDTO> upcomingEventMigrator = new BookSheetEventMigrator(EventStatus.Upcoming); upcomingEventMigrator.migrate(); DataMigrator<AWGEventDTO> inprogressEventMigrator = new BookSheetEventMigrator(EventStatus.InProgress); inprogressEventMigrator.migrate(); }
public void testFindingAlreadyMigratedEvents() { var myEvent = new AWGEventDTO(); myEvent.eventId = 21229; myEvent.endTime = DateTime.Now; DataMigrator<AWGEventDTO> bookSheetUpcomingEventMigrator = new BookSheetEventMigrator(EventStatus.Upcoming); var migrationTask = bookSheetUpcomingEventMigrator.migrateRecord(myEvent); migrationTask.Wait(); Assert.IsTrue(migrationTask.IsCompleted); }