public void TestAuthentication() { AuthenticationService service = new AuthenticationService(); bool result = service.validate("guest", Encrypt("123456")); Assert.IsTrue(result); result = service.validate("guest", Encrypt("34545")); Assert.IsFalse(result); }