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); } }
public void InvalidEmailAddressCapital() { Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**")); Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**")); Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**")); }
public void InvalidEmailTooManyDots() { Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**")); Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**")); }
public void InvalidEmailNoDot() { Assert.IsFalse(RegexOperations.ValidateEmail("there@isnodothere")); }
public void InvalidEmailMultipleAtSign() { Assert.IsFalse(RegexOperations.ValidateEmail("toomany@@atsign.com")); Assert.IsFalse(RegexOperations.ValidateEmail("toom@[email protected]")); }
public void InvalidEmailNoAtSign() { Assert.IsFalse(RegexOperations.ValidateEmail("missingatsign.com")); }
public void ValidEmailAddress() { Assert.IsTrue(RegexOperations.ValidateEmail("*****@*****.**")); }
public void ValidNameGoodParams() { Assert.IsTrue(RegexOperations.ValidName("Valid Name")); Assert.IsTrue(RegexOperations.ValidName("Longer Valid Name")); }
public void InvalidPhoneNumberNotNumber() { Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("+36 30123234o")); Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("+36 30##?:!241O")); }
public void InvalidPhoneNumberFormat() { Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("+36201233456")); Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("36 30 123 2345")); Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("+36 54 1231234")); }
public void ValidPhoneNumber() { Assert.IsTrue(RegexOperations.ValidCellPhoneNumberHUN("+36 201233456")); Assert.IsTrue(RegexOperations.ValidCellPhoneNumberHUN("+36 303213445")); }
public void InvalidNameEmptyString() { Assert.IsFalse(RegexOperations.ValidName("")); }
public void InvalidNamesNotCapital() { Assert.IsFalse(RegexOperations.ValidName("little Letter")); Assert.IsFalse(RegexOperations.ValidName("Little letter")); }
public void InvalidNameWithNumbers() { Assert.IsFalse(RegexOperations.ValidName("123 Joe")); Assert.IsFalse(RegexOperations.ValidName("H4xor G0d")); }
public GateLogger(ILogger logger) { RegexOperations.BuildRegexes(); this.Logger = logger; }
public void InvalidPhoneNumberEmptyString() { Assert.IsFalse(RegexOperations.ValidCellPhoneNumberHUN("")); }
public void InvalidEmailEmptyStrnig() { Assert.IsFalse(RegexOperations.ValidateEmail("")); }