public void TestLogIn_Negative() { bool result = false; ICryptography _crypto = new CrossCutting.IoCManager.Cryptography.CryptographyIoCManager(base.Config).GetICryptographyCurrentImplementation(); using (IQueryApplication qry = new CrossCutting.IoCManager.Voluntario.Application.Query.QueryApplicationIoCManager(base.Config).GetCurrentIQueryApplicationImplementation()) { qry.RequestId = RequestId; qry.Email = base.Voluntario.Email; qry.Pass = _crypto.Encrypt("qqqqqqqqqqqqqqqq"); result = qry.EmailLogIn(); } Assert.IsFalse(result); }
public void TestCryptographyInjection() { ICryptography obj = new CrossCutting.IoCManager.Cryptography.CryptographyIoCManager(base.Config).GetICryptographyCurrentImplementation(); Assert.IsTrue(obj != null && obj.GetType().IsClass); }