Example #1
0
        public void JobLogger_LogMessage_ToDataBase_Warning()
        {
            LogDestiny Destiny = new LogDestiny(false, true, false);
            MessageTypeToLog TypeLog = new MessageTypeToLog(true, true, true);

            JobLogger Object = new JobLogger(Destiny, TypeLog);
            bool control = Object.LogMessage("TEST MESSAGE", LogType.Warning);

            Assert.IsTrue(!control);
        }
Example #2
0
        public void JobLogger_LogMessage_ToConsole_Message()
        {
            LogDestiny Destiny = new LogDestiny(true, false, false);
            MessageTypeToLog TypeLog = new MessageTypeToLog(true, true, true);

            JobLogger Object = new JobLogger(Destiny, TypeLog);
            bool control = Object.LogMessage("TEST MESSAGE", LogType.Message);

            Assert.IsTrue(control);
        }
Example #3
0
 public JobLogger(LogDestiny logDestiny, MessageTypeToLog messageTypeToLog)
 {
     LogDestiny = logDestiny;
     MessageTypeToLog = messageTypeToLog;
 }
Example #4
0
        public void JobLogger_LogMessage_ToFile_Error()
        {
            LogDestiny Destiny = new LogDestiny(false, false, true);
            MessageTypeToLog TypeLog = new MessageTypeToLog(true, true, true);

            JobLogger Objeto = new JobLogger(Destiny, TypeLog);
            bool control = Objeto.LogMessage("TEST MESSAGE", LogType.Error);

            Assert.IsTrue(!control);
        }