public void PriorityTest() { var target = new PrintSetting(); const PRINT_PRIORITY expected = new PRINT_PRIORITY(); target.Priority = expected; PRINT_PRIORITY actual = target.Priority; Assert.AreEqual(expected, actual); }
void init() { try { Logger.LogFuncUp(); #region Fields initialization _printerAE = ""; _ourAE = ""; _printerIP = ""; _printerPort = 0; _printPriority = PRINT_PRIORITY.MEDIUM; _copies = 1; _layout = ""; _sheetImageCount = 1; #endregion #region Fields setting by parsing configure file _ourAE = _printer.OurAE; _printerAE = _printer.DefaultAE; Orientation = (Orientation)_printer.DefaultOrientation; PeerNode peerNode = new PeerNode(); if (-1 == _printer.GetPacsNodeParametersByAE(_printerAE, ref peerNode)) { Logger.LogError("Not found default Pacs Node for filming"); } _printerPort = peerNode.PeerPort; _printerIP = peerNode.PeerIP; #endregion Logger.LogFuncDown(); } catch (Exception ex) { Logger.LogFuncException(ex.Message + ex.StackTrace); throw; } }