Beispiel #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);
            }
        }
Beispiel #2
0
 public void InvalidEmailAddressCapital()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
 }
Beispiel #3
0
 public void InvalidEmailTooManyDots()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
 }
Beispiel #4
0
 public void InvalidEmailNoDot()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("there@isnodothere"));
 }
Beispiel #5
0
 public void InvalidEmailMultipleAtSign()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("toomany@@atsign.com"));
     Assert.IsFalse(RegexOperations.ValidateEmail("toom@[email protected]"));
 }
Beispiel #6
0
 public void InvalidEmailNoAtSign()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("missingatsign.com"));
 }
Beispiel #7
0
 public void ValidEmailAddress()
 {
     Assert.IsTrue(RegexOperations.ValidateEmail("*****@*****.**"));
 }
Beispiel #8
0
 public void ValidNameGoodParams()
 {
     Assert.IsTrue(RegexOperations.ValidName("Valid Name"));
     Assert.IsTrue(RegexOperations.ValidName("Longer Valid Name"));
 }
Beispiel #9
0
 public void InvalidPhoneNumberNotNumber()
 {
     Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("+36 30123234o"));
     Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("+36 30##?:!241O"));
 }
Beispiel #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"));
 }
Beispiel #11
0
 public void ValidPhoneNumber()
 {
     Assert.IsTrue(RegexOperations.ValidCellPhoneNumberHUN("+36 201233456"));
     Assert.IsTrue(RegexOperations.ValidCellPhoneNumberHUN("+36 303213445"));
 }
Beispiel #12
0
 public void InvalidNameEmptyString()
 {
     Assert.IsFalse(RegexOperations.ValidName(""));
 }
Beispiel #13
0
 public void InvalidNamesNotCapital()
 {
     Assert.IsFalse(RegexOperations.ValidName("little Letter"));
     Assert.IsFalse(RegexOperations.ValidName("Little letter"));
 }
Beispiel #14
0
 public void InvalidNameWithNumbers()
 {
     Assert.IsFalse(RegexOperations.ValidName("123 Joe"));
     Assert.IsFalse(RegexOperations.ValidName("H4xor G0d"));
 }
Beispiel #15
0
 public GateLogger(ILogger logger)
 {
     RegexOperations.BuildRegexes();
     this.Logger = logger;
 }
Beispiel #16
0
 public void InvalidPhoneNumberEmptyString()
 {
     Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN(""));
 }
Beispiel #17
0
 public void InvalidEmailEmptyStrnig()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail(""));
 }