public void TestMessageVerification() { var message = new AuditEntry() { Sequence = 1, CreatedAt = DateTime.Now, Stream = "Test", Action = "Action 1", UserDetails = "User Details", DataPayload = "Data Payload" }; var csp = new RSACryptoServiceProvider(); message.SignAuditMesssage(csp, Crypto.SupportedHashAlgorithm.SHA1); Assert.IsTrue(message.VerifyAuditMessage(csp, Crypto.SupportedHashAlgorithm.SHA1)); }