Exemple #1
0
        public void LogForOutgoing(Guid trackId, string remoteEndPoint, string methodName, string requestMessage, string responseMessage, string duration)
        {
            try
            {
                requestMessage  = RegexOperations.AlterMessage(requestMessage);
                responseMessage = RegexOperations.AlterMessage(responseMessage);

                this.Logger.Log(trackId, "Outgoing", LOGGER_NAME, LogType.Information, remoteEndPoint, methodName, requestMessage, responseMessage, duration);
            }
            catch (Exception ex)
            {
                this.Logger.Log(trackId, "Exception: Outgoing ", LOGGER_NAME, LogType.Error, ex);
            }
        }
Exemple #2
0
 public void InvalidEmailAddressCapital()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
 }
Exemple #3
0
 public void InvalidEmailTooManyDots()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
 }
Exemple #4
0
 public void InvalidEmailNoDot()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("there@isnodothere"));
 }
Exemple #5
0
 public void InvalidEmailMultipleAtSign()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("toomany@@atsign.com"));
     Assert.IsFalse(RegexOperations.ValidateEmail("toom@[email protected]"));
 }
Exemple #6
0
 public void InvalidEmailNoAtSign()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("missingatsign.com"));
 }
Exemple #7
0
 public void ValidEmailAddress()
 {
     Assert.IsTrue(RegexOperations.ValidateEmail("*****@*****.**"));
 }
Exemple #8
0
 public void ValidNameGoodParams()
 {
     Assert.IsTrue(RegexOperations.ValidName("Valid Name"));
     Assert.IsTrue(RegexOperations.ValidName("Longer Valid Name"));
 }
Exemple #9
0
 public void InvalidPhoneNumberNotNumber()
 {
     Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("+36 30123234o"));
     Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("+36 30##?:!241O"));
 }
Exemple #10
0
 public void InvalidPhoneNumberFormat()
 {
     Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("+36201233456"));
     Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("36 30 123 2345"));
     Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("+36 54 1231234"));
 }
Exemple #11
0
 public void ValidPhoneNumber()
 {
     Assert.IsTrue(RegexOperations.ValidCellPhoneNumberHUN("+36 201233456"));
     Assert.IsTrue(RegexOperations.ValidCellPhoneNumberHUN("+36 303213445"));
 }
Exemple #12
0
 public void InvalidNameEmptyString()
 {
     Assert.IsFalse(RegexOperations.ValidName(""));
 }
Exemple #13
0
 public void InvalidNamesNotCapital()
 {
     Assert.IsFalse(RegexOperations.ValidName("little Letter"));
     Assert.IsFalse(RegexOperations.ValidName("Little letter"));
 }
Exemple #14
0
 public void InvalidNameWithNumbers()
 {
     Assert.IsFalse(RegexOperations.ValidName("123 Joe"));
     Assert.IsFalse(RegexOperations.ValidName("H4xor G0d"));
 }
Exemple #15
0
 public GateLogger(ILogger logger)
 {
     RegexOperations.BuildRegexes();
     this.Logger = logger;
 }
Exemple #16
0
 public void InvalidPhoneNumberEmptyString()
 {
     Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN(""));
 }
Exemple #17
0
 public void InvalidEmailEmptyStrnig()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail(""));
 }