Пример #1
0
        public void InitializePrinterDatabase_And_IntegrityTest()
        {
            var printerDatabase = new PrinterDatabase();
            printerDatabase.Initialize();

            Assert.IsTrue(printerDatabase.PerformIntegrityCheck(true));
        }
Пример #2
0
        public void DeletePrinter_Test()
        {
            var printerDatabase = new PrinterDatabase();
            printerDatabase.Initialize();
            var printer = printerDatabase.CreatePrinter("localhost");


            printerDatabase.DeletePrinterByID(printer.Id);
            Assert.AreEqual(printerDatabase.GetPrinterList().Count, 0);

        }