public void Encrypted() { CustomHelperTestClass tc = TestClass; mocks.ViewDataContainer.Object.ViewData[IdHelper.NofEncryptDecrypt] = new SimpleEncryptDecrypt(); // keys to make test reproduceable byte[] key = GetConstantKey(32); byte[] iv = GetConstantKey(16); var data = new Tuple <byte[], byte[]>(key, iv); mocks.HttpContext.Object.Session.Add(SimpleEncryptDecrypt.EncryptFieldData, data); string result = mocks.HtmlHelper.Encrypted("name", "value").ToString(); Assert.AreEqual(@"<input name=""-encryptedField-name"" type=""hidden"" value=""+xG+YO3ZY8KuTB6z4pUXjQ=="" />", result); }
public int FourRefParametersFunction(CustomHelperTestClass parm1, CustomHelperTestClass parm2, CustomHelperTestClass parm3, CustomHelperTestClass parm4) { return 0; }
public int ThreeRefParametersFunction(CustomHelperTestClass parm1, CustomHelperTestClass parm2, CustomHelperTestClass parm3) { return 0; }
public int TwoRefParametersFunction(CustomHelperTestClass parm1, CustomHelperTestClass parm2) { return 0; }
public int OneRefParameterFunction(CustomHelperTestClass parm) { return 0; }
public void FourRefParametersAction(CustomHelperTestClass parm1, CustomHelperTestClass parm2, CustomHelperTestClass parm3, CustomHelperTestClass parm4) {}
public void ThreeRefParametersAction(CustomHelperTestClass parm1, CustomHelperTestClass parm2, CustomHelperTestClass parm3) {}
public void TwoRefParametersAction(CustomHelperTestClass parm1, CustomHelperTestClass parm2) {}
public void OneRefParameterAction(CustomHelperTestClass parm) {}
public int FourRefParametersFunction(CustomHelperTestClass parm1, CustomHelperTestClass parm2, CustomHelperTestClass parm3, CustomHelperTestClass parm4) { return(0); }
public int ThreeRefParametersFunction(CustomHelperTestClass parm1, CustomHelperTestClass parm2, CustomHelperTestClass parm3) { return(0); }
public int OneRefParameterFunction(CustomHelperTestClass parm) { return(0); }
public void FourRefParametersAction(CustomHelperTestClass parm1, CustomHelperTestClass parm2, CustomHelperTestClass parm3, CustomHelperTestClass parm4) { }
public void ThreeRefParametersAction(CustomHelperTestClass parm1, CustomHelperTestClass parm2, CustomHelperTestClass parm3) { }
public void TwoRefParametersAction(CustomHelperTestClass parm1, CustomHelperTestClass parm2) { }
public void OneRefParameterAction(CustomHelperTestClass parm) { }