public void MyTestInitialize()
        {
            try
            {
                MISD.Server.Database.Maintenance onMaintenance = new MISD.Server.Database.Maintenance();
                onMaintenance.Beginning = DateTime.Now;
                onMaintenance.End       = null;
                MISD.Server.Database.Maintenance offMaintenance = new MISD.Server.Database.Maintenance();
                //  offMaintenance.Beginning = null;
                offMaintenance.End = DateTime.Now;
                MISD.Server.Database.MonitoredSystem testMS_On = new MISD.Server.Database.MonitoredSystem();
                testMS_On.FQDN      = "Test.MS_ON";
                testMS_On.Name      = "MS_Test_On";
                testMS_On.IsIgnored = true;
                // testMS_On.Maintenance = onMaintenance;

                MISD.Server.Database.MonitoredSystem testMS_Off = new MISD.Server.Database.MonitoredSystem();
            }
            catch (Exception e) {
                //logging exception
                var messageEx = new StringBuilder();
                messageEx.Append("Initializing of Testdata failed." + e.ToString());
                MISD.Server.Manager.Logger.Instance.WriteEntry(messageEx.ToString(), LogType.Exception);
            }
        }
        public void ActivateMaintenanceModeTest()
        {
            MISD.Server.Database.MonitoredSystem testMS = new MISD.Server.Database.MonitoredSystem();

            WorkstationManager_Accessor target   = new WorkstationManager_Accessor(); // TODO: Passenden Wert initialisieren
            List <string> workstationDomainNames = new List <string>();

            workstationDomainNames.Add("Test.MS_ON");
            List <string> expected = null; // TODO: Passenden Wert initialisieren
            List <string> actual;

            actual = target.ActivateMaintenanceMode(workstationDomainNames);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
        }
 public void MyTestCleanup()
 {
     try
     {
         MISD.Server.Database.MonitoredSystem testMS_On  = new MISD.Server.Database.MonitoredSystem();
         MISD.Server.Database.MonitoredSystem testMS_Off = new MISD.Server.Database.MonitoredSystem();
     }
     catch (Exception e)
     {
         //logging exception
         var messageEx = new StringBuilder();
         messageEx.Append("Initializing of Testdata failed." + e.ToString());
         MISD.Server.Manager.Logger.Instance.WriteEntry(messageEx.ToString(), LogType.Exception);
     }
 }