This services monitors a directory in the filesystem looking for Dashboard Team or Project and imports them into the database.
Inheritance: IService
 public void Setup()
 {
     dashboardsProviderMock = new Mock<ICategoriesTemplatesProvider> ();
     teamsProviderMock = new Mock<ITeamTemplatesProvider> ();
     storageManagerMock = new Mock<IStorageManager> ();
     storageManagerMock.SetupAllProperties ();
     storageMock = new Mock<IStorage> ();
     storageManagerMock.Object.ActiveDB = storageMock.Object;
     var uiMock = new Mock<IGUIToolkit> ();
     uiMock.Setup (m => m.Invoke (It.IsAny<EventHandler> ())).Callback<EventHandler> (e => e (null, null));
     App.Current.CategoriesTemplatesProvider = dashboardsProviderMock.Object;
     App.Current.TeamTemplatesProvider = teamsProviderMock.Object;
     App.Current.DatabaseManager = storageManagerMock.Object;
     App.Current.GUIToolkit = uiMock.Object;
     tmpDir = Path.Combine (Path.GetTempPath (), Path.GetRandomFileName ());
     Directory.CreateDirectory (tmpDir);
     monitor = new DummyMonitor ();
     service = new ImportMonitorServices (tmpDir, monitor);
 }
 public void TestInvalidDirectory()
 {
     service = new ImportMonitorServices ("/" + Path.GetRandomFileName (), new DummyMonitor ());
     Assert.IsFalse (service.Start ());
 }